Interface Connection

Represents a connection to Ably.

interface Connection {
    get error(): undefined | ErrorInfo;
    get status(): ConnectionStatus;
    offAllStatusChange(): void;
    onStatusChange(listener: ConnectionStatusListener): OnConnectionStatusChangeResponse;
}

Accessors

Methods

  • Removes all listeners that were added by the onStatusChange method.

    Returns void