ConnectionCloseStatus Enumeration |
Represents well known WebSocket close codes as defined in section 11.7 of the WebSocket protocol spec.
Namespace: NeoAxis.NetworkingAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic enum ConnectionCloseStatus
Members| Member name | Value | Description |
|---|
| NormalClosure | 1,000 |
(1000) The connection has closed after the request was fulfilled.
|
| EndpointUnavailable | 1,001 |
(1001) Indicates an endpoint is being removed. Either the server or client will become unavailable.
|
| ProtocolError | 1,002 |
(1002) The client or server is terminating the connection because of a protocol error.
|
| InvalidMessageType | 1,003 |
(1003) The client or server is terminating the connection because it cannot accept the data type it received.
|
| Empty | 1,005 |
No error specified.
|
| InvalidPayloadData | 1,007 |
(1007) The client or server is terminating the connection because it has received data inconsistent with the message type.
|
| PolicyViolation | 1,008 |
(1008) The connection will be closed because an endpoint has received a message that violates its policy.
|
| MessageTooBig | 1,009 |
(1009) The connection will be closed because the message is too big.
|
| MandatoryExtension | 1,010 |
(1010) The client is terminating the connection because it expected the server to negotiate an extension.
|
| InternalServerError | 1,011 |
(1011) The connection will be closed by the server because of an error on the server.
|
See Also