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

    Interface Subscription

    Represents a subscription 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.subscribe();
    // Later when done with the subscription
    s.unsubscribe();
    interface Subscription {
        unsubscribe: () => void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    unsubscribe: () => void

    This method should be called when the subscription is no longer needed, it will make sure no further events will be sent to the subscriber and that references to the subscriber are cleaned up.