Constructors

Methods

Constructors

  • Parameters

    • options: {
          bufferSize: number;
          maxMessageSize: number;
          onError: (msgBuffer: Uint8Array, errorMsg: string) => void;
          onMessage: (msg: Uint8Array) => void;
      }

    Returns Decoder

Methods

  • Parameters

    • data: Buffer | ArrayLike<Uint8Array>

    Returns Uint8Array