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

x/websocket_broadcastchannel/src/multiplex-message.ts>createMultiplexMessage

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

Creates a MultiplexMessage from the given WebSocketBroadcastChannel and message.

Parameters

WebSocketBroadcastChannel that sends the message.

message: string

Message to be sent.