Interface DelimiterCodecOptions

options for DelimiterCodec

interface DelimiterCodecOptions {
    strategy?: "keep" | "discard";
}

Properties

Properties

strategy?: "keep" | "discard"

Strategy for handling delimiter.

  • keep - delimiter is kept at the end of each frame
  • discard - delimiter is discarded

Ignored for encoding (delimiter is always appended after the frame)

'discard'