Table of Contents

Enum WebSocketState

Namespace
System.Net.WebSockets.WebSocketFrame
Assembly
System.Net.WebSockets.dll

Defines the different states a WebSockets instance can be in.

public enum WebSocketState

Fields

Aborted = 6

Reserved for future use.

CloseReceived = 4

A close message was received from the remote endpoint.

CloseSent = 3

A close message was sent to the remote endpoint.

Closed = 5

Indicates the WebSocket close handshake completed gracefully.

Connecting = 1

The connection is negotiating the handshake with the remote endpoint.

None = 0

Reserved for future use.

Open = 2

The initial state after the HTTP handshake has been completed.