Interface UseChatConnectionResponse

The response from the useChatConnection hook.

interface UseChatConnectionResponse {
    connection: Connection;
    currentStatus: ConnectionStatus;
    error?: ErrorInfo;
}

Properties

connection: Connection

The current Ably Connection instance.

currentStatus: ConnectionStatus

The current status of the connection.

error?: ErrorInfo

An error that provides a reason why the connection has entered the new status, if applicable.