code: function Compressor(inflatedReady, deflatedReady) {
    this.inflatedReady = inflatedReady;
    this.deflatedReady = deflatedReady;
    this._inflate = inflater(chunk => this.inflatedReady(chunk.buffer.slice(chunk.byteOffset, chunk.byteOffset + chunk.length)));
    this._deflate = deflater(chunk => this.deflatedReady(chunk.buffer.slice(chunk.byteOffset, chunk.byteOffset + chunk.length)));
  }
docs: Handles de-/compression via #inflate() and #deflate(), calls you back via #deflatedReady() and #inflatedReady().
  The chunk we get from deflater is actually a view of a 16kB arraybuffer, so we need to copy the relevant parts
  memory to a new arraybuffer.