Documentation
    Preparing search index...

    Interface RelayPoolOutboxRouterOptions

    Options for the relay-pool-backed outbox router.

    interface RelayPoolOutboxRouterOptions {
        defaultTimeoutMs?: number;
        fallbackRelays: string[];
        relayPool: OutboxRelayPool;
        isRelayAllowed?(url: string): boolean;
        loadRelayLists(
            pubkeys: string[],
        ): Map<string, RelayListEntry> | Promise<Map<string, RelayListEntry>>;
        signEvent?(template: EventTemplate): Promise<NostrEvent>;
        verifyEvent?(event: NostrEvent): boolean | Promise<boolean>;
    }
    Index

    Properties

    defaultTimeoutMs?: number

    Default bounded-query and initial-discovery timeout in milliseconds.

    fallbackRelays: string[]

    Relays used when hints and NIP-65 data are unavailable.

    relayPool: OutboxRelayPool

    Relay pool the router subscribes and publishes through.

    Methods