Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since June 2022.
Note: This feature is available in Web Workers.
The enqueue() method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.
For more information on readable streams and chunks see Using Readable Streams.
The chunk being queued. A chunk is a single piece of data. It can be any type of data, and a stream can contain chunks of different types.
None (undefined).
The stream is not readable. This might occur if the stream is errored via controller.error(), or when it is closed without its controller's controller.close() method ever being called.
In this example an encoded chunk is passed to the queue using the enqueue() method.
| Streams # ts-default-controller-enqueue |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 22, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.