kernl API
    Preparing search index...

    Interface OutboxRelayPoolLike

    The relay-pool shape kehto's outbox router consumes. Declared structurally so core needs no extra import.

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

    • Parameters

      • event: NostrEvent
      • relayUrls: string[]

      Returns Promise<Record<string, boolean>>

    • Parameters

      • filters: NostrFilter[]
      • relayUrls: string[]
      • callback: (item: NostrEvent | "EOSE") => void

      Returns { unsubscribe(): void }