f
bindServerToPort(): Promise<HTTPServer>
server: HTTPServer,
config: { port: number; }
Binds an HTTPServer to an OS-assigned port and writes the resolved port back to config.port.
Usage
import * as mod from "lib/setup/bind-server-to-port.ts";