Enum CentrifugeCloseCode
Centrifuge close code.
Namespace: Unity.Services.Wire.Internal
Syntax
public enum CentrifugeCloseCode
Fields
Name | Description | Value |
---|---|---|
WebsocketNotSet | Close code not set | 0 |
WebsocketNormal | The connection successfully completed the purpose for which it was created. | 1000 |
WebsocketAway | The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection. | 1001 |
WebsocketProtocolError | The endpoint is terminating the connection due to a protocol error. | 1002 |
WebsocketUnsupportedData | The connection is being terminated because the endpoint received data of a type it cannot accept. (For example, a text-only endpoint received binary data.) | 1003 |
WebsocketUndefined | Reserved. A meaning might be defined in the future. | 1004 |
WebsocketNoStatus | Reserved. Indicates that no status code was provided even though one was expected. | 1005 |
WebsocketAbnormal | Reserved. Indicates that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected. | 1006 |
WebsocketInvalidData | The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message). | 1007 |
WebsocketPolicyViolation | The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable. | 1008 |
WebsocketTooBig | The endpoint is terminating the connection because a data frame was received that is too large. | 1009 |
WebsocketMandatoryExtension | The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't. | 1010 |
WebsocketServerError | The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request. | 1011 |
WebsocketTlsHandshakeFailure | Reserved. Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified). | 1015 |
Normal | is clean disconnect when client cleanly closed connection. | 3000 |
Shutdown | sent when node is going to shut down. | 3001 |
InvalidToken | sent when client came with invalid token. | 3002 |
BadRequest | sent when client uses malformed protocol frames or wrong order of commands. | 3003 |
InternalServerError | sent when internal error occurred on server. | 3004 |
Expired | sent when client connection expired. | 3005 |
SubscriptionExpired | sent when client subscription expired. | 3006 |
Stale | sent to close connection that did not become authenticated in configured interval after dialing. | 3007 |
Slow | sent when client can't read messages fast enough. | 3008 |
WriteError | sent when an error occurred while writing to client connection. | 3009 |
InsufficientState | sent when server detects wrong client position in channel Publication stream. Disconnect allows client to restore missed publications on reconnect. | 3010 |
ForceReconnect | sent when server disconnects connection. | 3011 |
ForceNoReconnect | sent when server disconnects connection and asks it to not reconnect again. | 3012 |
ConnectionLimit | can be sent when client connection exceeds configured connection limit (per user ID or due to other rule). | 3013 |
ChannelLimit | can be sent when client connection exceeds configured channel limit. | 3014 |