Skip to content

TcpSocketCmd

TcpSocketCmd = { kind: "send"; payload: TcpOutbound; }

Defined in: src/io/broker/TcpSocketActor.ts:50

TCP-socket actor. Uses node:net (built into Bun, Node, and the Deno node-compat layer). Owns one outbound connection; reconnects via the base class’ policy on disconnect.

Inbound frames are pushed to target as plain messages. Outbound is via the standard enqueueOutbound path — the actor exposes a small command surface (send) so user code can tell({ kind: 'send', payload }).