Enum WebSocketStatusCode
An enumeration of potential WebSocket status codes.
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public enum WebSocketStatusCode
Fields
Name | Description |
---|---|
Abnormal | Indicates that the connection was closed abnormally, without sending a Close frame. Reserved for use outside Close frames. |
GoingAway | Indicates that an endpoint is "going away", such as a server going down or a browser having navigated away from a page. |
InvalidData | Indicates that an endpoint is terminating the connection because it has received data within a message that was not consistent with the type of message. |
InvalidType | Indicates that an endpoint is terminating the connection because it has received a type of data that it cannot accept. |
MessageTooLarge | Indicates that an endpoint is terminating the connection because it has received a message that is too big for it to process. |
Normal | Indicates normal closure, meaning that the purpose for which the connection was established has been fulfilled. |
NoStatus | Indicates that no status code was present in the Close frame. Reserved for use outside Close frames. |
PolicyViolation | Indicates that an endpoint is terminating the connection because it has received a message that violates its policy. |
ProtocolError | Indicates that an endpoint is terminating the connection due to a protocol error. |
SecureHandshakeFailure | Indicates that the connection was closed due to a failure to perform a TLS handshake. Reserved for use outside Close frames. |
UnexpectedCondition | Indicates that the server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request. |
UnsupportedExtension | Indicates that the client is terminating the connection because it has expected the server to negotiate one or more extensions, but the server didn't return them in the response message of the WebSocket handshake. |