---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# TransformStreamDefaultController.enqueue()

The **`enqueue()`** method of the `TransformStreamDefaultController` interface enqueues the given chunk in the readable side of the stream.

## Syntax

```js
enqueue(chunk)
```

### Parameters

- `chunk`
  - : 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.

### Return value

None `undefined`.

### Exceptions

- `TypeError`
  - : 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.
