CompressionStream: readable property
Baseline 2023 Newly available
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.
Value
Examples
The following example returns a ReadableStream from a CompressionStream.
js
let stream = new CompressionStream("gzip"); console.log(stream.readable); // A ReadableStream Specifications
| Specification |
|---|
| Streams> # dom-generictransformstream-readable> |
Browser compatibility
Loading…