Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
enum System.​Net.​WebSockets.​WebSocketError
Assembly: System.Net.WebSockets
Contains the list of possible WebSocket errors.
Values
Success
Indicates that there was no native error information for the exception.
InvalidMessageType
Indicates that a WebSocket frame with an unknown opcode was received.
Faulted
Indicates a general error.
NativeError
Indicates that an unknown native error occurred.
NotAWebSocket
Indicates that the incoming request was not a valid websocket request.
UnsupportedVersion
Indicates that the client requested an unsupported version of the WebSocket protocol.
UnsupportedProtocol
Indicates that the client requested an unsupported WebSocket subprotocol.
HeaderError
Indicates an error occurred when parsing the HTTP headers during the opening handshake.
ConnectionClosedPrematurely
Indicates that the connection was terminated unexpectedly.
InvalidState
Indicates the WebSocket is an invalid state for the given operation (such as being closed or aborted).