Documentation
    Preparing search index...

    Interface OutboxRelayPool

    Relay pool contract the router drives. Implementors adapt their pool library while the router retains relay selection and event attribution.

    interface OutboxRelayPool {
        isAvailable(): boolean;
        publish(
            event: NostrEvent,
            relayUrls: string[],
        ): void | Record<string, boolean> | Promise<Record<string, boolean>>;
        subscribe(
            filters: NostrFilter[],
            relayUrls: string[],
            callback: (item: NostrEvent | "EOSE") => void,
        ): { unsubscribe(): void };
    }
    Index

    Methods

    • Publish event to relayUrls, optionally returning per-relay outcomes.

      Parameters

      Returns void | Record<string, boolean> | Promise<Record<string, boolean>>