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