Export (0) Print
Expand All

WebSocketState Enumeration

.NET Framework 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
Show:
© 2014 Microsoft