Re: [web-nfc] Investigate if/how CompressStream/DecompressStream can be used with Web NFC (#321)

FYI you can do this:

```js
function compressAsync(data) {
  const stream = new Blob(data).stream();
  const compressed = stream.pipeThrough(new CompressionStream('deflate'));
  return new Response(compressed).arrayBuffer();
}

-- 
GitHub Notification of comment by taralx
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/321#issuecomment-592389932 using your GitHub account

Received on Friday, 28 February 2020 07:40:09 UTC