Since May 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
Note: This feature is available in Web Workers.
The readable read-only property of the CompressionStream interface returns a ReadableStream.
The following example returns a ReadableStream from a CompressionStream.
let stream = new CompressionStream("gzip");
console.log(stream.readable); // A ReadableStream
| Specification |
|---|
| Streams> # dom-generictransformstream-readable> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
readable |
80 | 80 | 113 | 67 | 16.4 | 80 | 113 | 57 | 16.4 | 13.0 | 80 | 16.4 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream/readable