AppleSauce
    Preparing search index...

    Type Alias RelayOptions

    type RelayOptions = {
        eoseTimeout?: number;
        eventTimeout?: number;
        keepAlive?: number;
        publishRetry?: RetryConfig;
        publishTimeout?: number;
        requestRetry?: RetryConfig;
        subscriptionRetry?: RetryConfig;
        WebSocket?: WebSocketSubjectConfig<any>["WebSocketCtor"];
    }
    Index

    Properties

    eoseTimeout?: number

    How long to wait for an EOSE message (default 10s)

    eventTimeout?: number

    How long to wait for an OK message from the relay (default 10s)

    keepAlive?: number

    How long to keep the connection alive after nothing is subscribed (default 30s)

    publishRetry?: RetryConfig

    Default retry config for publish() method

    publishTimeout?: number

    How long to wait for a publish to complete (default 30s)

    requestRetry?: RetryConfig

    Default retry config for request() method

    subscriptionRetry?: RetryConfig

    Default retry config for subscription() method

    WebSocket?: WebSocketSubjectConfig<any>["WebSocketCtor"]

    Custom WebSocket implementation