WebSocketError Enumeration

.NET Framework 4.6 and 4.5

Contains the list of possible WebSocket errors.

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

'Declaration
Public Enumeration 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, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft