Sanity Library Reference Docs
    Preparing search index...

    Type Alias DisconnectEvent

    The listener has been told to explicitly disconnect and not reconnect. This is a rare situation, but may occur if the API knows reconnect attempts will fail, eg in the case of a deleted dataset, a blocked project or similar events.

    Note that this is not treated as an error on the observable, but will complete the observable.

    type DisconnectEvent = {
        reason: string;
        type: "disconnect";
    }
    Index

    Properties

    Properties

    reason: string
    type: "disconnect"