temit > ListenerOptions > lazy
ListenerOptions.lazy property
Sets whether or not the listener will lazily connect to RabbitMQ. If set to true
, the listener will require that open()
is run in order to start receiving events. Otherwise the listener will automatically connect.
Either way, open()
can still be used to retrieve a promise that resolves when the listener is ready and waiting.
Defaults to false
.
Signature:
lazy?: boolean;