Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

enum System.​Net.​WebSockets.​WebSocketState

Assembly: System.Net.WebSockets

Defines the different states a WebSockets instance can be in.

Values

None
Reserved for future use.
Connecting
The connection is negotiating the handshake with the remote endpoint.
Open
The initial state after the HTTP handshake has been completed.
CloseSent
A close message was sent to the remote endpoint.
CloseReceived
A close message was received from the remote endpoint.
Closed
Indicates the WebSocket close handshake completed gracefully.
Aborted
Indicates that the WebSocket has been aborted.