Function: waitForTcpPortReady()
ts
function waitForTcpPortReady(
port,
timeoutMs?,
signal?
): Promise<void>;Defined in: node/src/executors/internal/daemon-ports-and-scope-key.ts:89
Waits for 127.0.0.1:port to accept TCP connections via wait-on or rejects on timeout/abort.
Verifies that a daemon's declared .port() socket is actively listening before resolving service startup.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
port | number | undefined | Target TCP port number on 127.0.0.1. |
timeoutMs? | number | DEFAULT_DAEMON_PORT_READY_TIMEOUT_MS | Maximum wait duration in milliseconds. |
signal? | AbortSignal | undefined | Optional abort signal cancelling readiness polling. |
Returns
Promise<void>
Resolves once a TCP connection to port succeeds.
Throws
If signal aborts or port does not accept connections within timeoutMs.