Skip to content

ServeTcpHandle

Defined in: src/launcher/serve-tcp.ts:91

Handle returned by serveTcp for callers that want to stop the server.

readonly done: Promise<void>;

Defined in: src/launcher/serve-tcp.ts:100

Promise that resolves when the server has stopped (idle timeout, stop(), or a fatal error). Mirrors Python’s blocking serve() return.


readonly host: string;

Defined in: src/launcher/serve-tcp.ts:93

Host the server is listening on.


readonly port: number;

Defined in: src/launcher/serve-tcp.ts:95

Actual bound TCP port (resolved from 0 when the OS auto-selects).

stop(): Promise<void>;

Defined in: src/launcher/serve-tcp.ts:97

Shut down the listener.

Promise<void>