WebSocketError Enumeration
.NET Framework 4.5
Contains the list of possible WebSocket errors.
Namespace: System.Net.WebSockets
Assembly: System (in System.dll)
| Member name | Description | |
|---|---|---|
| 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. |
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.