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, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft