Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/websocket_broadcastchannel/src/types.ts>BroadcastChannelIsh

Host-wide BroadcastChannel for Deno CLI, backed by WebSockets.
Latest
interface BroadcastChannelIsh
implements EventTarget
import { type BroadcastChannelIsh } from "https://deno.land/x/websocket_broadcastchannel@0.8.0/src/types.ts";

What BroadcastChannel (if available) looks like, and what WebSocketBroadcastChannel implements.

Properties

readonly
name: string
onmessage: ((ev: Event) => void) | null
onmessageerror: ((ev: Event) => void) | null

Methods

postMessage(message: unknown): void
close(): void