ServeTcpHandle
Defined in: src/launcher/serve-tcp.ts:91
Handle returned by serveTcp for callers that want to stop the server.
Properties
Section titled “Properties”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).
Methods
Section titled “Methods”stop()
Section titled “stop()”stop(): Promise<void>;Defined in: src/launcher/serve-tcp.ts:97
Shut down the listener.
Returns
Section titled “Returns”Promise<void>
