Interface ConnectionStatusChange

Represents a change in the status of the connection.

interface ConnectionStatusChange {
    current: ConnectionStatus;
    error?: ErrorInfo;
    previous: ConnectionStatus;
    retryIn?: number;
}

Properties

The new status of the connection.

error?: ErrorInfo

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

The previous status of the connection.

retryIn?: number

The time in milliseconds that the client will wait before attempting to reconnect.