waitForPortAvailable
Blocks until the specified TCP port becomes available, polling with a delay between attempts.
Parameters
port
the TCP port to wait for
maxAttempts
the maximum number of attempts (default 50)
delayMs
the delay in milliseconds between attempts (default 200)