TextEncoderStream: readable-Eigenschaft

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since June 2022.

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

Hinweis: Diese Funktion ist in Web Workers verfügbar.

Die schreibgeschützte readable-Eigenschaft der TextEncoderStream-Schnittstelle gibt einen ReadableStream zurück.

Wert

Beispiele

Das folgende Beispiel zeigt, wie ein ReadableStream von einem TextEncoderStream-Objekt zurückgegeben wird.

js
const stream = new TextEncoderStream();
console.log(stream.readable); //a ReadableStream

Spezifikationen

Specification
Streams
# dom-generictransformstream-readable

Browser-Kompatibilität