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

Pubsub

import { Pubsub } from "https://gitlab.com/soapbox-pub/nostr-machina/-/raw/main/mod.ts";
class Pubsub<T> {
close(): void;
publish(topic: string, data: T): void;
subscribe(topic: string): Sub<T>;
}

§Type Parameters

§Methods

§
close(): void
[src]
§
publish(topic: string, data: T): void
[src]
§
subscribe(topic: string): Sub<T>
[src]