transform(chunk, controller) {
    console.log('Received chunk %o with %d bytes.', chunk, chunk.byteLength)

    // Decode the current chunk to string and prepend the last string
    const string = `${this.lastString}${this.decoder.decode(chunk)}`

    // Extract lines from chunk
    const lines = string.split(/\r\n|[\r\n]/g)

    // Save last line, as it might be incomplete
    this.lastString = lines.pop() || ''

    // Enqueue each line in the next chunk
    for (const line of lines) {
      controller.enqueue(line)
    }
  }
Receives the next Uint8Array chunk from `fetch` and transforms it.

@param {Uint8Array} chunk The next binary data chunk.
@param {TransformStreamDefaultController} controller The controller to enqueue the transformed chunks to.