Connection

interface Connection

Represents a connection to Ably.

Not suitable for inheritance

This interface is not designed for implementation or extension outside this SDK. The interface definition may evolve over time with additional properties or methods to support new features, which could break implementations.

Properties

Link copied to clipboard
abstract val error: ErrorInfo?

(CHA-CS2b) The current error, if any, that caused the connection to enter the current status.

Link copied to clipboard
abstract val status: ConnectionStatus

(CHA-CS2a) The current status of the connection.

Functions

Link copied to clipboard

(CHA-CS4) Registers a listener that will be called whenever the connection status changes.

Link copied to clipboard