I have some event handlers registered this way:
addEventHandler(SFSEventType.USER_DISCONNECT,OnPlayerGoneHandler.class);
addEventHandler(SFSEventType.USER_RECONNECTION_SUCCESS,OnPlayerReconnectionHandler.class);
addEventHandler(SFSEventType.USER_RECONNECTION_TRY,OnPlayerGoneHandler.class);
I understood that we shouldnot be testing scenarios by pulling out ethernet..But i got to implement a functionality which i need that to be done.
I have HRC in place..gave reconnection seconds of 15..When pulled out cable, no event is being fired at server side..but client side, observed tht reconnection try is being triggered..
Does server also gets the reconnection try event fired?(as of i understand it should be)
But Iam not getting the event to be fired!! and also when the user plugs in the cable, a disconnect event and then reconnection success event is being
triggered.
Could you please help me in understanding how to get either user disconnect event/retry event in this scenario??
Sequence of connection events fired
Re: Sequence of connection events fired
Sreelu wrote:I understood that we shouldnot be testing scenarios by pulling out ethernet..But i got to implement a functionality which i need that to be done.
If you unplug the ethernet cable (or turn off the WiFi) while the client is already connected you won't receive any event because your computer still thinks the connection is up. If you plug the ethernet cable back (before the TCP timeout) you will indeed be connected and able to communicate.
This has nothing to do with SmartFox, it's how TCP works.
We ha discussed this many times:
viewtopic.php?f=18&t=18224&p=79511
viewtopic.php?f=18&t=18743&p=81832
cheers
Who is online
Users browsing this forum: KennethsTut and 15 guests