跳转到内容
简体中文

TcpFraming

此内容尚不支持你的语言。

TcpFraming = BytesFraming | LinesFraming | LengthPrefixedFraming

Defined in: src/io/broker/TcpFraming.ts:41

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.