In regards to the auto declare exchange policy by scanning the key, I
like it.
--Dan
On Feb 2, 3:11 am, DOBRO Sergei <vertolet...@yandex.ru> wrote:
> Hi Dan,
> If I'm not mistaken, there is no "unbind" ( MQ.queue().unbind() ) method in javascript API, yet. Sometimes It is really needed.
> Could you add this method?
> BTW,
> I found out that MQ.queue().bind() declares topic exchange if no exchange declared before by calling MQ.exchange().
> As result, if I try to declare exchange of type "direct", it causes the error in firebug console like this:"Connection Closing unexpectedly!,530,NOT_ALLOWED - cannot redeclare exchange 'fooExchange' in vhost '/' of type 'direct' with type 'topic'".Let me suggest a new scheme. If no exchange declared before we call MQ.queue().bind(), then (depending on routing key):