Applesauce
    Preparing search index...

    Type Alias RelayReqOptions

    Base options for REQ subscriptions to a relay

    type RelayReqOptions = {
        id?: string;
        reconnect?: boolean | number | Parameters<typeof retry>[0];
        resubscribe?: boolean | number | Parameters<typeof repeat>[0];
        waitForAuth?: boolean;
    }
    Index

    Properties

    id?: string

    Custom REQ id for the subscription

    reconnect?: boolean | number | Parameters<typeof retry>[0]

    Whether to reconnect when socket is closed. default is true (3 retries with 1 second delay)

    resubscribe?: boolean | number | Parameters<typeof repeat>[0]

    Whether to resubscribe if the subscription is closed by the relay. default is false

    waitForAuth?: boolean

    Whether to wait for authentication and retry if auth-required is received. default is true