arobson / rabbot

Deprecated: Please see https://github.com/Foo-Foo-MQ/foo-foo-mq
MIT License
276 stars 129 forks source link

Custom arguments support #151

Closed nhanledev closed 6 years ago

nhanledev commented 6 years ago

Hi, I want to add some custom arguments into queues like x-queue-mode and custom type x-delayed-message into the exchange. How can I do this?

nhanledev commented 6 years ago

I found out that I could do this normally by set arguments: {} like what I did in amqplib.

manuel-reil commented 5 years ago

@nhanledev Cool, where have you put the arguments object? I am also interested in using the delay message exchange type. Have you added it in the exchange JSON config?

nhanledev commented 5 years ago

@nhanledev Cool, where have you put the arguments object? I am also interested in using the delay message exchange type. Have you added it in the exchange JSON config?

@manuel-reil It was quite a long time ago. I think that putting { arguments: { 'x-queue-mode' } } to Queue's options and { arguments: { 'x-delayed-message' } } to Exchange's options were what I did to make they work before.