AppleSauce
    Preparing search index...

    Type Alias SubscriptionOptions

    Options for the subscription method on the pool and relay

    type SubscriptionOptions = {
        id?: string;
        reconnect?: boolean | number | Parameters<typeof retry>[0];
        resubscribe?: boolean | number | Parameters<typeof repeat>[0];
        retries?: number | Parameters<typeof retry>[0];
    }
    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 (10 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

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

    Number of times to retry the subscription if the relay fails to connect. default is 10

    use reconnect instead