Feature Request: Support for connecting to RabbitMQ using an object instead of a URL
Hello team 😄,
First off, thank you for this amazing package! It's been incredibly helpful in integrating RabbitMQ with NestJS applications, and I truly appreciate the effort and thought put into its development.
I would like to request a feature to allow connecting to RabbitMQ using an object instead of a URL. Currently, the package only supports connections via a URL string. However, in certain cases, it's more convenient to define those connection parameters (specially options such as heartbeat, etc.) as an object.
The underlying library, amqplib, already supports this functionality. This would simplify and enhance the flexibility of connection configurations and allow users to leverage all the options amqplib provides.
Thank you for considering this request!
@pmarfany I wouldn't mind supporting an object but since we rely in a couple places on the URL (even for logging) we would have to parse the object to construct the URI. If you would like to contribute with the functionality, I would appreciate a lot :pray: