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.​WebSocketCloseStatus

Assembly: System.Net.WebSockets

Represents well known WebSocket close codes as defined in section 11.7 of the WebSocket protocol spec.

Values

NormalClosure
(1000) The connection has closed after the request was fulfilled.
EndpointUnavailable
(1001) Indicates an endpoint is being removed. Either the server or client will become unavailable.
ProtocolError
(1002) The client or server is terminating the connection because of a protocol error.
InvalidMessageType
(1003) The client or server is terminating the connection because it cannot accept the data type it received.
Empty
No error specified.
InvalidPayloadData
(1007) The client or server is terminating the connection because it has received data inconsistent with the message type.
PolicyViolation
(1008) The connection will be closed because an endpoint has received a message that violates its policy.
MessageTooBig
(1009) The client or server is terminating the connection because it has received a message that is too big for it to process.
MandatoryExtension
(1010) The client is terminating the connection because it expected the server to negotiate an extension.
InternalServerError
(1011) The connection will be closed by the server because of an error on the server.