Ir al contenido
Español

TcpFraming

Esta página aún no está disponible en tu idioma.

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.