kernl API
    Preparing search index...

    Interface RelayDirectory

    A live directory of monitored servers.

    interface RelayDirectory {
        listings$: Observable<readonly RelayListing[]>;
        listings(): readonly RelayListing[];
        search(text: string, limit?: number): readonly RelayListing[];
        start(): void;
        stop(): void;
        suggest(options: SuggestOptions): readonly RelayListing[];
    }
    Index
    listings$: Observable<readonly RelayListing[]>

    Every listing, best first, replayed to new subscribers and re-emitted at most every throttleMs while reports stream in.

    • Listings whose address matches what the person typed, best first.

      Parameters

      • text: string
      • Optionallimit: number

      Returns readonly RelayListing[]

    • Open the streaming subscription. Does nothing when already open.

      Returns void

    • Close it, keeping what was learned.

      Returns void

    • Servers to suggest for a purpose: the well-known fallback first, unless monitors say it refuses, then durable hosts from the directory.

      Parameters

      Returns readonly RelayListing[]