Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/websocket_broadcastchannel/src/fn.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/fn.ts";

Functions

Create an AbortController that can also abort when the given AbortSignal aborts.

Checks if two items are the same, and the same type.

Extracts the port number from a URL. Responds correctly to the default port for a given protocol.

f
s

Short for stringify, useful for logging. Uses JSON.stringify to convert an object to a string.

Executes a function, but swallows any errors.

Short for stringify with indentation, useful for logging. Uses JSON.stringify to convert an object to a string.