interface BroadcastChannel
implements EventTarget
import { type BroadcastChannel } from "https://deno.land/x/deno@v1.39.0/ext/broadcast_channel/lib.deno_broadcast_channel.d.ts";
Properties
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null
Methods
Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
addEventListener<K extends keyof BroadcastChannelEventMap>(): void
type: K,
listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof BroadcastChannelEventMap>(): void
type: K,
listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any,
options?: boolean | EventListenerOptions,
import { BroadcastChannel } from "https://deno.land/x/deno@v1.39.0/ext/broadcast_channel/lib.deno_broadcast_channel.d.ts";
type
{ readonly prototype: BroadcastChannel; new (name: string): BroadcastChannel; }