System.Net.WebSockets.WebSocketError Enumeration

Contains the list of possible WebSocket errors.

Syntax

public enum WebSocketError

Remarks

Documentation for this section has not yet been entered.

Members

Member NameDescription
ConnectionClosedPrematurely

Indicates that the connection was terminated unexpectedly.

Faulted

Indicates a general error.

HeaderError

Indicates an error occurred when parsing the HTTP headers during the opening handshake.

InvalidMessageType

Indicates that a WebSocket frame with an unknown opcode was received.

InvalidState

Indicates the WebSocket is an invalid state for the given operation (such as being closed or aborted).

NativeError

Indicates that an unknown native error occurred.

NotAWebSocket

Indicates that the incoming request was not a valid websocket request.

Success

Indicates that there was no native error information for the exception.

UnsupportedProtocol

Indicates that the client requested an unsupported WebSocket subprotocol.

UnsupportedVersion

Indicates that the client requested an unsupported version of the WebSocket protocol.

Requirements

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