Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

How do I detect on the client that I was disconnected?

$
0
0
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?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>