import { BroadcastChannel } from "https://deno.land/x/async_channels@v1.0.0-rc8/src/broadcast.ts";
Constructors
new
BroadcastChannel(topicFn: (val: TMsg) => TTopic, options?: BroadcastChannelOptions)Properties
protected
readonly
options: BroadcastChannelOptionsMethods
protected
doSubscribe(tuple: [TopicFn<TTopic>, "topicFn"] | [TTopic, "topic"], subOpts?: BroadcastSubscribeOptions): [Receiver<TMsg>, () => void]close()
debug(...args: unknown[])
error(...args: unknown[])
send(msg: TMsg, abortCtrl?: AbortController): Promise<void>
subscribe(topic: TTopic, subOpts?: BroadcastSubscribeOptions): [Receiver<TMsg>, () => void]
subscribeFn(topicFn: TopicFn<TTopic>, subOpts?: BroadcastSubscribeOptions): [Receiver<TMsg>, () => void]
Static Methods
from<TMsg, TTopic>(): Subscribable<TMsg, TTopic>
pipeOpts?: BroadcastChannelPipeOptions,