ServerFreePortScanner
Scans for a free port and starts the server on it.
Parameters
server
server to start
Functions
Link copied to clipboard
Attempts to start the server on a free port. Only a port reported as occupied before onReady starts makes the scan advance: any other failure propagates to the caller instead of being retried on another port.