@ably/chat - v0.11.0
    Preparing search index...

    Interface Connection

    Represents a connection to Ably.

    interface Connection {
        get error(): undefined | ErrorInfo;
        get status(): ConnectionStatus;
        dispose(): void;
        onStatusChange(listener: ConnectionStatusListener): StatusSubscription;
    }
    Index

    Accessors

    Methods

    • Disposes of the connection instance, cleaning up any registered listeners. This method should be called when the connection is no longer needed.

      Returns void