WebSocketState Enumeration

WebSocketState Enumeration

.NET Framework (current version)
 

Defines the different states a WebSockets instance can be in.

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

public enum WebSocketState

Member nameDescription
Aborted

Reserved for future use.

Closed

Indicates the WebSocket close handshake completed gracefully.

CloseReceived

A close message was received from the remote endpoint.

CloseSent

A close message was sent to the remote endpoint.

Connecting

The connection is negotiating the handshake with the remote endpoint.

None

Reserved for future use.

Open

The initial state after the HTTP handshake has been completed.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft