ObjectNet provides a facility to clients detect when the server is restarted. This can be useful to finish the game on the client side when the client reconnects after the server is restarted.


ObjectNet can bring the player back restoring all player status after the connection is the player reconnects after being released from the server side, nonetheless, this can't be done if the server restarts due to the fact that the server lost all game status. In this case, the client needs to leave the match is a server restart if detected.


You can Detect server restart by checking the option on NetworkManager.




When activated, an event will be raised when a server restart is detected. This event can be caught on NetworkEventsManager or by the API method OnServerRestarted on NetworkTransport class ( see API reference to more information's ).