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

Decorators

Open bashleigh opened this issue 6 years ago • 2 comments

If possible create a series of decorators to achieve the following implementation

@AmqpConnection('default')
export default class MyAmqpProvider {

    @Consume('queue_name', { ack: false})
    async listen(message) {
        console.log('message', message.content.toString());
    }
    
    @Exchange('exchange_name', 'queue_name')
    async exchange() {
        return 'send me to the queue';
    }
}

bashleigh avatar Jul 11 '18 13:07 bashleigh

@bashleigh Thank you for your hard work. These features will be very helpful. Could you update the progress of them, please?

anhvu3594 avatar Jan 09 '19 02:01 anhvu3594

Honestly I haven't really had the time to dedicate to this feature unfortunately :( I'd love to do it! However the applications I built the package for have been working the way I implemented them so I haven't found the need to implement this feature at work so they won't let me really :'( I've also struggled to decide how to implement the feature so that's another hurdle.

I'll have another look today as I've got a bit of free time and try and decide the best way of implementing this feature. If you've got any idea I'd like to hear them :)

bashleigh avatar Jan 09 '19 10:01 bashleigh