Enum DisconnectReason
DisconnectReason enumerates all disconnect reasons.
Namespace: Unity.Networking.Transport.Error
Syntax
public enum DisconnectReason : byte
Fields
| Name | Description | Value |
|---|---|---|
| Default | Indicates a normal disconnection as a result of calling Disconnect on the connection. |
0 |
| Timeout | Indicates the connection timed out. |
1 |
| MaxConnectionAttempts | Indicates the connection failed to establish a connection after maxConnectAttempts. |
2 |
| ClosedByRemote | Indicates the connection was closed remotely. |
3 |