Module

x/live/daemon/workers/portpool.ts>default

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Latest
class default
implements PortPool
import { default } from "https://dotland.deno.dev/x/live@1.107.0/daemon/workers/portpool.ts";

Constructors

new
default(minPort?: number, maxPort?: number)

Properties

private
maxPort: number
private
minPort: number
private
usedPorts: Set<number>

Methods

private
checkPort(options: Deno.ListenOptions): CheckedPort
private
generateAvailablePorts(): number[]
free(port: number)
get(): number