Connection Lost
Posted: 07 Jun 2011, 12:29
disappears when the connection to the Internet - neither the client nor the server is not coming event USER_DISCONNECT. What is wrong?
SmartFoxServer support forums
https://forums.smartfoxserver.com:443/
how do I catch an event when the user is off the internet? SmartFoxServer 2X sees it as being connected to and off of Idle timeout.Sigtran wrote:Your "User Reconnection Timeframe" is set to none 0 value (set in the sfs2x admin tool).
I'd say check out SFSEventType API... (e.g. USER_RECONNECTION_TRY && USER_RECONNECTION_SUCCESS events)
Catch USER_RECONNECTION_TRY event (just check and see if I was right & your "User Reconnection Timeframe" is above "0" value)Oleg_79 wrote: how do I catch an event when the user is off the internet?
From API:Oleg_79 wrote: SmartFoxServer 2X sees it as being connected to and off of Idle timeout.
how to catch the event off the Internet user?
If my first post iss correct, then you are just not catching the right event. thats it. read: http://docs2x.smartfoxserver.com/api-do ... ECTION_TRYOleg_79 wrote: User Disconnect not working what is wrong?
Sigtran wrote:Catch USER_RECONNECTION_TRY event (just check and see if I was right & your "User Reconnection Timeframe" is above "0" value)Oleg_79 wrote: how do I catch an event when the user is off the internet?
From API:Oleg_79 wrote: SmartFoxServer 2X sees it as being connected to and off of Idle timeout.
how to catch the event off the Internet user?
When a User looses connection for an unknown reason the client will attempt to re-connect immediately. If the operation is done within the expected time the User connection will be resumed transparently.
If my first post iss correct, then you are just not catching the right event. thats it. read: http://docs2x.smartfoxserver.com/api-do ... ECTION_TRYOleg_79 wrote: User Disconnect not working what is wrong?
meh, I just checked and I too dont get any event fired up neither on the server side or the client side (if the user unplugs his internet connection). Report as a bug? Using version 2.0.0-RC2aOleg_79 wrote: USER_RECONNECTION_TRY event DO NOT WORK ! ! !.