Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

RelayPool

import { RelayPool } from "https://gitlab.com/soapbox-pub/nostr-machina/-/raw/main/mod.ts";
class RelayPool {
constructor(config?: PoolConfig);
get config(): PoolConfig;
set config(config: PoolConfig);
 
req(opts: RelaySubOpts): RelaySub;
}

§Constructors

§
new RelayPool(config?: PoolConfig)
[src]

§Properties

§
config: PoolConfig
[src]

Configuration object for the pool.

§Methods

§
req(opts: RelaySubOpts): RelaySub
[src]

Subscribe to a filter on the chosen relays.