Hi,I have documented a lot about the reconnection of SFS2x, I understood:- To activate the reconnection simply enter a value> 0 in the administration page to the user reconnection frame.(I am developing a turn-based card game, of which each round lasts from 1 to 30 seconds, for this reason I put the user reconnection frame 30 seconds)- If the Ethernet cable or Wifi is disconnected, this event has no way of working.

I do not understand:- When the user reconnection frame timer ends, what happens? Does the server try to send the client a Disconnect event?- If the application is closed by mistake while in the game, how can the connection be re-established?- If the application is closed by mistake while in the game, how can the user be returned to the current status of the game?

Ardito wrote:- When the user reconnection frame timer ends, what happens? Does the server try to send the client a Disconnect event?

No. The client already knows that the previous connection is lost.When the timer is over the disconnect event is fired on the client. From the server side the User and relative session are removed.

- If the application is closed by mistake while in the game, how can the connection be re-established?

No, because the client has lost all of its state, which is necessary to continue the game.

- If the application is closed by mistake while in the game, how can the user be returned to the current status of the game?

In this case you need to implement your own reconnection logic, based on how your game works.Typically you will need to be able to transmit the necessary data to the client so that it can restore the previous game state.

Example: if you detect a client has disconnected while in game you could store a "disconnected" flag in this player profile (maybe on the DB) and the next time he will reconnect you can check if it's still possible to put the player back into the game.

All this can work in conjunction with the existing reconnection-system, as you will get a "disconnected" event only after the regular reconnection attempts have already failed.