WebSocketState Enumeration

.NET Framework 4.6 and 4.5

Defines the different states a WebSockets instance can be in.

Namespace:  System.Net.WebSockets
Assembly:  System (in System.dll)

'Declaration
Public Enumeration WebSocketState

Member nameDescription
AbortedReserved for future use.
ClosedIndicates the WebSocket close handshake completed gracefully.
CloseReceivedA close message was received from the remote endpoint.
CloseSentA close message was sent to the remote endpoint.
ConnectingThe connection is negotiating the handshake with the remote endpoint.
NoneReserved for future use.
OpenThe initial state after the HTTP handshake has been completed.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft