Connection

interface Connection

Represents a connection to Ably.

Types

Link copied to clipboard
fun interface Listener

An interface for listening to changes for the connection status

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