Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
WebSocketState Enumeration

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)

public enum 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
Show:
© 2015 Microsoft