amqpx / index / predefined / directExchange
Function: directExchange()
directExchange(
channel):Exchange
Defined in: src/predefined.ts:13
This will create a direct exchange that is created by default by RabbitMQ container.
The direct exchange has name amqp.direct, is durable, and has type direct.
Parameters
| Parameter | Type | Description |
|---|---|---|
channel | Channel | The channel that should assert the exchange |
Returns
The exchange that was created