DisconnectReason enumerates all disconnect reasons.
public enum DisconnectReason : byte
|ClosedByRemote||Indicates the connection was closed remotely.|
|Count||Used only for count. Keep last and don't assign explicit values|
|Default||Indicates a normal disconnection as a result of calling Disconnect on the connection.|
|MaxConnectionAttempts||Indicates the connection failed to establish a connection after maxConnectAttempts.|
|Timeout||Indicates the connection timed out.|