Page 1 of 1
LagMonitor
Posted: 17 Feb 2012, 11:05
by Oleg_79
Please add to the documentation, the class LagMonitor.
Thanks in advance...
Re: LagMonitor
Posted: 17 Feb 2012, 15:11
by Lapo
Hi,
there is no need for the documentation of that class, in fact you don't need to use it or instantiate it.
All you need to do is enabling the monitor, via SmartFox.enableLagMonitor(...) and subscribe to the SFSEvent.PING_PONG event.
That event will notify the average lag. Check the docs for all the details
Cheers
Re: LagMonitor
Posted: 20 Feb 2012, 07:52
by Oleg_79
Thank you. Then comes another question.
What if the new added in the final version of SmartFoxServer2x? Because it was in previous versions SmartFoxServer2x.
ActionScript 3 API
[NEW] Added new LagMonitor object to check average round-trip (client-server-client) lag times.
Re: LagMonitor
Posted: 20 Feb 2012, 08:35
by Lapo
It is now finalized and provides the ability to decide the frequency of the ping-pong request and the number of values stored to calculate the avarage time. Defaults are: interval -->4seconds, values-size --> 10
You find these info in the docs as well.
cheers