ServerFreePortScanner

Scans for a free port and starts the server on it.

Parameters

server

server to start

Constructors

Link copied to clipboard
constructor(server: Server)

Functions

Link copied to clipboard
fun attemptStartUntilPortAvailable(startingPort: Int, onReady: (Stoppable, port: Int) -> Unit)

Attempts to start the server on a free port.