WebSocketError Enumeration

WebSocketError Enumeration

.NET Framework (current version)
 

Contains the list of possible WebSocket errors.

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

public enum WebSocketError

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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft