serveTcp
function serveTcp(protocol, options?): Promise<ServeTcpHandle>;Defined in: src/launcher/serve-tcp.ts:115
Bind a TCP socket and serve protocol over per-connection IPC streams.
The network analog of serveUnix: same raw Arrow-IPC framing, only
the listening socket differs. Nagle’s algorithm is disabled
(setNoDelay(true)) on each connection so the lockstep request/response
framing is not delayed waiting to coalesce writes.
SECURITY: no authentication or TLS — trusted networks only; the default
host is loopback (127.0.0.1). Use the HTTP transport for untrusted
networks.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
protocol |
Protocol |
options |
ServeTcpOptions |
Returns
Section titled “Returns”Promise<ServeTcpHandle>
