Contains the list of possible WebSocket errors.
Syntax
public enum WebSocketError
Remarks
Members
| Member Name | Description |
|---|
| ConnectionClosedPrematurely |
Indicates that the connection was terminated unexpectedly.
|
| Faulted |
Indicates a general error.
|
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.
|
Requirements
Namespace: System.Net.WebSockets
Assembly: System (in System.dll)
Assembly Versions: 4.0.0.0