GetAvailablePortOptions

import { GetAvailablePortOptions } from "jsr:@ende/net";

interface

interface GetAvailablePortOptions

Options for getAvailablePort.

Properties

preferredPort

preferredPort?: number

A port to check availability of first. If the port isn't available, fall back to another port.

Defaults to port 0, which will let the operating system choose an available port.

Default: 0

Source