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

x/websocket_broadcastchannel/src/multiplex-message.ts

Host-wide BroadcastChannel for Deno CLI, backed by WebSockets.
Latest
import * as websocketBroadcastchannel from "https://deno.land/x/websocket_broadcastchannel@0.8.0/src/multiplex-message.ts";

Functions

Creates a MultiplexMessage from the given WebSocketBroadcastChannel and message.

Extracts any MultiplexMessage object from an Event, if present. Throws if the event does not contain a MultiplexMessage.

Checks whether the given message is a MultiplexMessage.

Interfaces

Internal message format for multiplexing messages over a single WebSocket, for several channels.