WebSocketState Enumeration

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: