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

x/websocket_broadcastchannel/src/default-websocket-url.ts>defaultWebSocketUrl

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

Returns the websocket URL to use. Clients will connect to this URL, and the server will listen on the port specified by this URL.

Parameters

optional
port = [UNSUPPORTED]

The port to use. Defaults to 51799, because in hexadecimal that's 0xCA57, which vaguely looks like "CAST", as in broadCASTchannel.