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 class 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.

.NET Framework
Available since 4.5
Return to top
Show: