Enum WebSocketState
- Namespace
- System.Net.WebSockets.WebSocketFrame
- Assembly
- System.Net.WebSockets.dll
Defines the different states a WebSockets instance can be in.
public enum WebSocketState
Fields
Aborted = 6Reserved for future use.
CloseReceived = 4A close message was received from the remote endpoint.
CloseSent = 3A close message was sent to the remote endpoint.
Closed = 5Indicates the WebSocket close handshake completed gracefully.
Connecting = 1The connection is negotiating the handshake with the remote endpoint.
None = 0Reserved for future use.
Open = 2The initial state after the HTTP handshake has been completed.