Enum WebSocketState
Indicates the state of a WebSocket connection.
Namespace: Mars.Common.Socket
Assembly: Mars.Common.dll
Syntax
public enum WebSocketState : ushort
Remarks
The values of this enumeration are defined in
The WebSocket API
.
Fields
Name | Description |
---|---|
Closed | Equivalent to numeric value 3. Indicates that the connection has been closed or could not be established. |
Closing | Equivalent to numeric value 2. Indicates that the connection is going through the closing handshake, or the close method has been invoked. |
Connecting | Equivalent to numeric value 0. Indicates that the connection has not yet been established. |
Open | Equivalent to numeric value 1. Indicates that the connection has been established, and the communication is possible. |