Documentation
    Preparing search index...

    Minimal relay-pool surface used by this transport — structurally satisfied by nostr-tools SimplePool. Injectable for testing.

    interface CvmRelayPool {
        publish(
            relays: string[],
            event: NostrEventLike,
            options?: { signal?: ApprovalSignal },
        ): void | Promise<unknown>;
        subscribe(
            relays: string[],
            filter: NostrFilterLike,
            params: {
                oneose?: () => void;
                onevent?: (event: NostrEventLike) => void;
                signal?: ApprovalSignal;
            },
        ): CvmSubCloser;
    }
    Index

    Methods