TransformStream: readable property

Note: This feature is available in Web Workers.

The readable read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.

Value

Examples

The following example creates a new TransformStream as textEncoderStream, and prints the value of readable to the console.

js
const textEncoderStream = new TransformStream();
console.log(textEncoderStream.readable); // a ReadableStream

Specifications

Specification
Streams
# ref-for-ts-readable②

Browser compatibility

desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
readable