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