Export (0) Print
Expand All

WebSocketError Enumeration

.NET Framework 4.5

Contains the list of possible WebSocket errors.

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

public enum WebSocketError

Member nameDescription
ConnectionClosedPrematurelyIndicates that the connection was terminated unexpectedly.
FaultedIndicates a general error.
HeaderErrorIndicates an error occurred when parsing the HTTP headers during the opening handshake.
InvalidMessageTypeIndicates that a WebSocket frame with an unknown opcode was received.
InvalidStateIndicates the WebSocket is an invalid state for the given operation (such as being closed or aborted).
NativeErrorIndicates that an unknown native error occurred.
NotAWebSocketIndicates that the incoming request was not a valid websocket request.
SuccessIndicates that there was no native error information for the exception.
UnsupportedProtocolIndicates that the client requested an unsupported WebSocket subprotocol.
UnsupportedVersionIndicates that the client requested an unsupported version of the WebSocket protocol.

.NET Framework

Supported in: 4.6
Show:
© 2014 Microsoft