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

x/websocket_broadcastchannel/test/get-available-port.ts>getAvailablePort

Host-wide BroadcastChannel for Deno CLI, backed by WebSockets.
Latest
function getAvailablePort
import { getAvailablePort } from "https://deno.land/x/websocket_broadcastchannel@0.8.0/test/get-available-port.ts";

Returns a TCP port number, that at the time of running this function, is available to listen on.

Returns

number