docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum CentrifugeCloseCode

    The reason for which centrifuge was closed.

    Namespace: Unity.Services.Wire.Internal
    Assembly: Unity.Services.Wire.Internal.dll
    Syntax
    public enum CentrifugeCloseCode

    Fields

    Name Description
    BadRequest

    sent when client uses malformed protocol frames or wrong order of commands.

    ChannelLimit

    can be sent when client connection exceeds configured channel limit.

    ConnectionLimit

    can be sent when client connection exceeds configured connection limit (per user ID or due to other rule).

    Expired

    sent when client connection expired.

    ForceNoReconnect

    sent when server disconnects connection and asks it to not reconnect again.

    ForceReconnect

    sent when server disconnects connection.

    InsufficientState

    sent when server detects wrong client position in channel Publication stream. Disconnect allows client to restore missed publications on reconnect.

    InternalServerError

    sent when internal error occurred on server.

    InvalidToken

    sent when client came with invalid token.

    Normal

    is clean disconnect when client cleanly closed connection.

    Shutdown

    sent when node is going to shut down.

    Slow

    sent when client can't read messages fast enough.

    Stale

    sent to close connection that did not become authenticated in configured interval after dialing.

    SubscriptionExpired

    sent when client subscription expired.

    WebsocketAbnormal

    Reserved. Indicates that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected.

    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.

    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).

    WebsocketMandatoryExtension

    The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't.

    WebsocketNoStatus

    Reserved. Indicates that no status code was provided even though one was expected.

    WebsocketNormal

    The connection successfully completed the purpose for which it was created.

    WebsocketNotSet

    Close code not set

    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.

    WebsocketProtocolError

    The endpoint is terminating the connection due to a protocol error.

    WebsocketServerError

    The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.

    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).

    WebsocketTooBig

    The endpoint is terminating the connection because a data frame was received that is too large.

    WebsocketUndefined

    Reserved. A meaning might be defined in the future.

    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.)

    WriteError

    sent when an error occurred while writing to client connection.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)