Need help / pointers on something
For my game I set the user max idle time to a certain value and I also disconnect users (kickUser) at different times from server side according to the situation. Most of the time it's because I have not received requests from a user for a while after he pressed the "home" or "back" button on his phone. So far so good.
The thing is when those users come back to the game they can't do anything. They can't send new requests. They do not get the CONNECTION_LOST event which is being listened to at all times and would return them to the login screen. I tried to put code like this in a timer to no avail:
Code: Select all
if (this.sfs == null) {
//return to login
....
}
else if (this.sfs.IsConnected == false) {
//return to login
....
}
What is the proper way to handle it?
I use SFS2X v2.13.0 and the latest client API.
Thanks