Streams Demo
When you press the button, the following happens:
-
A text file is fetched as a
ReadableStreamand piped through aTextDecodeStream. -
A file handle is created and exposed as a
WritableStream. -
The resulting decoded
ReadableStreamfrom step 1 istee()ed into twoReadableStreams. -
The first
ReadableStreamis streamed into a<pre>displayed on the screen. -
The second
ReadableStreamis…- piped through an uppercase
TransformStream, - then piped through a
TextEncoderStream, - next piped through a
CompressionStream, -
and finally piped to the
WritableStreamfrom step 2.
- piped through an uppercase