Zum Inhalt springen
Deutsch

TcpFraming

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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.