Page 1 of 1

ping interval

Posted: 22 Nov 2011, 12:22
by alex_h
Is it possible to set the time interval for the lag monitor? It seems to be set at 2 seconds between pings, but I'd prefer it to be 5 seconds. I've had a good rummage through all the documentation I could find but can't see any way to adjust the timing for the PING_PONG event.

Posted: 23 Nov 2011, 17:01
by Bax
No, it is not possible.

Posted: 13 Feb 2012, 00:17
by mhdside
I hope you can add this feature. It is really important. I need to increase the ping interval to save some bandwidth.

Re: ping interval

Posted: 15 Feb 2012, 14:01
by Lapo
I can guarantee that the bandwidth taken by the ping-pong requests is negligible, plus it works as a keep-alive signal for unstable connections.

Re: ping interval

Posted: 15 Feb 2012, 14:05
by mhdside
Lapo wrote:I can guarantee that the bandwidth taken by the ping-pong requests is negligible, plus it works as a keep-alive signal for unstable connections.
ok, if you say so... you`re the boss here.

Re: ping interval

Posted: 17 Feb 2012, 15:25
by Lapo
I have to add something here.
The latest SFS2X version 2.0.1 provides you with the ability to choose the rate of the lag-monitoring. Default is 4 seconds.
Check the docs for the SmartFox.enableLagMonitor(...) method.

hope it helps