Decode the incoming data from the server

Constructors

  • This constructor should not be called directly

    Parameters

    • onDecode: ((iobuffer) => void)

      callback that will be called when a chunk is decoded

        • (iobuffer): void
        • Parameters

          Returns void

    Returns ChunkDecoder

Properties

_currentChunkRemaining: number
_currentDecodedSlices: IOBuffer[]
_currentState: State
_onDecode: ((data) => void)

Type declaration

    • (data): void
    • Parameters

      Returns void

_SEAL: number = 0x00_00

Methods

  • Initialize the decoding loop until no data is remaining

    Parameters

    Returns void