Enum DisconnectReason

Namespace
Unity.Multiplayer.Core

Why a session ended or a client was dropped.

public enum DisconnectReason

Fields

ClientLeft = 8

Server side: the client closed its connection (it left, quit or its process ended cleanly).

ConnectFailed = 3

The client could not reach the server.

Kicked = 6

The server removed the client.

LocalLeave = 1

This process asked to leave or stop.

None = 0

No disconnect has happened.

Rejected = 5

Connection approval refused the client (version, protocol, full, banned, bad payload).

ServerShutdown = 2

The server shut down.

TimedOut = 4

The connection stopped responding.

TransportFailure = 7

The transport failed (for example the port was already in use).