Enum DisconnectReason
- Namespace
- Unity.Multiplayer.Core
Why a session ended or a client was dropped.
public enum DisconnectReason
Fields
ClientLeft = 8Server side: the client closed its connection (it left, quit or its process ended cleanly).
ConnectFailed = 3The client could not reach the server.
Kicked = 6The server removed the client.
LocalLeave = 1This process asked to leave or stop.
None = 0No disconnect has happened.
Rejected = 5Connection approval refused the client (version, protocol, full, banned, bad payload).
ServerShutdown = 2The server shut down.
TimedOut = 4The connection stopped responding.
TransportFailure = 7The transport failed (for example the port was already in use).