Skip to content

TcpFraming

TcpFraming = { kind: "bytes"; } | { delimiter?: string; kind: "lines"; maxLineLen?: number; } | { kind: "length-prefixed"; maxFrameLen?: number; }

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

Frame extraction strategy on the inbound stream.

  • bytes — every chunk delivered raw, no framing. Subscriber has to handle byte-stream semantics itself.
  • lines — split on delimiter (default '\n'). Most useful for line-oriented protocols (HTTP/Telnet/Redis).
  • length-prefixed — first 4 bytes (big-endian uint32) carry the payload size; what follows is the payload.