RelaySub
import { RelaySub } from "https://gitlab.com/soapbox-pub/nostr-machina/-/raw/main/mod.ts";
class RelaySub extends EventTarget { }
constructor(opts: RelaySubOpts);
readonly filtersFn: FiltersFn;
readonly relays: string[];
readonly signal?: AbortSignal;
readonly uuid: string;
addEventListener<K extends keyof WebSocketEventMap>(
type: K,
listener: (ev: WebSocketEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;removeEventListener<K extends keyof WebSocketEventMap>(
type: K,
listener: (ev: WebSocketEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;