@ably/chat - v1.1.1
    Preparing search index...

    Interface UseChatConnectionOptions

    The options for the useChatConnection hook.

    interface UseChatConnectionOptions {
        onStatusChange?: ConnectionStatusListener;
    }
    Index

    Properties

    Properties

    onStatusChange?: ConnectionStatusListener

    A callback that will be called whenever the connection status changes. The listener is removed when the component unmounts.

    useChatConnection({
    onStatusChange: (change) => {
    console.log(`Connection changed from ${change.previous} to ${change.current}`);
    }
    });