nest-amqp icon indicating copy to clipboard operation
nest-amqp copied to clipboard

Handle multiple queues

Open raschan opened this issue 2 years ago • 3 comments

add ability for single handler to be attached to multiple queues via the listener

raschan avatar Mar 31 '22 12:03 raschan

hi @raschan , is it possible in the current version to call Listen() as a regular method ? having a callback which is normally the function being decorated ?

It gives a lot of flexibility I guess without changing the internals of this library I guess ? to be able to listen depending on runtime constraints to one or multiple topics.

Thanks a lot ^^

bacloud22 avatar Jul 13 '23 11:07 bacloud22

Hi @yanna92yar You can always inject the QueueService into you own services, and then call this.queueService.listen(...params)

raschan avatar Jul 13 '23 12:07 raschan

yes my bad I just saw the function ^^ Thanks a lot !!

bacloud22 avatar Jul 13 '23 12:07 bacloud22