Somehow I can't find how am I supposed to detect in the client when I'm disconnected (either explicitly, or because the server just crashed).
Neither of the following functions ever gets called:
• OnClientError
• OnClientDisconnect
• OnClientNotReady
• OnDisconnectedFromServer
• RegisterHandler(MsgType.Error
• RegisterHandler(MsgType.Disconnect
I will just get random ReadByte errors after a little while, instead.
So… what would I be...
How do I detect on the client that I was disconnected?
Neither of the following functions ever gets called:
• OnClientError
• OnClientDisconnect
• OnClientNotReady
• OnDisconnectedFromServer
• RegisterHandler(MsgType.Error
• RegisterHandler(MsgType.Disconnect
I will just get random ReadByte errors after a little while, instead.
So… what would I be...
How do I detect on the client that I was disconnected?