nestjs-rmq icon indicating copy to clipboard operation
nestjs-rmq copied to clipboard

Non global module support

Open thekvn opened this issue 5 years ago • 3 comments

Hi, we would like the ability to instantiate and inject RMQ on a per module basis, which means we would like the ability to pass in a name | symbol to register the module as.

This would enable us to have different modules use different exchanges, and listen to messages on different queues

thekvn avatar Aug 19 '20 10:08 thekvn

This is a good idea. I will consider implementing this feature and discuss it with my team. Thanks for sharing!

AlariCode avatar Aug 19 '20 16:08 AlariCode

Hello, I'm just starting with your library and I thought this was possible already. So I went on and hooked a connection on a single module and indeed it seems I can send messages but I cannot receive them. Is this the expected behaviour when 'misusing' the library or am I doing something terribly wrong? Thanks

SergioArrighi avatar Aug 24 '22 06:08 SergioArrighi

For now library supports only global module, so you need to use it in your root app.module

AlariCode avatar Aug 24 '22 12:08 AlariCode