import * as websocketBroadcastchannel from "https://deno.land/x/websocket_broadcastchannel@0.8.0/mod.ts";
Classes
Use this the same way you would use BroadcastChannel on Deno Deploy, it has the same API, but on a host that is not Deno Deploy. |
Functions
Creates a BroadcastChannel or WebSocketBroadcastChannel, depending on whether we are running on Deno Deploy or not. | |
Returns the websocket URL to use. Clients will connect to this URL, and the server will listen on the port specified by this URL. | |
Creates a logger with a label. Can extract relevant label from import.meta.url if supplied. | |
Polyfills the |
Interfaces
What BroadcastChannel (if available) looks like, and what WebSocketBroadcastChannel implements. | |
A https://deno.land/x/quiet_debug logger, with an extra method to create labelled sub-loggers. |
Type Aliases
What globalThis looks like when it has BroadcastChannel. |