@ably/chat - v0.8.0
    Preparing search index...

    Interface StatusSubscription

    Represents a subscription to status change events that can be unsubscribed from. This interface provides a way to clean up and remove subscriptions when they are no longer needed.

    const s = someService.onStatusChange();
    const s2 = someOtherService.on()
    // Later when done with the subscription
    s.off();
    s2.off();
    interface StatusSubscription {
        off: () => void;
    }
    Index

    Properties

    Properties

    off: () => void

    Unsubscribes from the status change events. It will ensure that no further status change events will be sent to the subscriber and that references to the subscriber are cleaned up.