Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

queueBindOk with multiple bind operations #99

Open
davidfooks opened this issue May 24, 2012 · 4 comments
Open

queueBindOk with multiple bind operations #99

davidfooks opened this issue May 24, 2012 · 4 comments

Comments

@davidfooks
Copy link

Currently, there is no way to find out if a specific binding has completed with 'queueBindOk'. For example:

queue.bind('followers', '1');
queue.bind('followers', '2');
queue.on('queueBindOk', function queueBoundFn()
{
    ...
}

How can I tell which binding was successfully bound?

Can the queueBindOk callback function give the exchangeName and routingKey that was bound?

queue.on('queueBindOk', function queueBoundFn(exchangeName, routingKey)

Or maybe add an addCallback function like with subscribe?

queue.bind(...).addCallback(callback);

Thanks

@davidfooks
Copy link
Author

Ok I had a look in master and it looks like you have something along these lines (added an optional callback to bind). How long will it be until the next release (or how stable is master)?

@SLaks
Copy link

SLaks commented Mar 29, 2013

It looks like the added code doesn't actually solve the problem.

There is only a single _bindCallback variable, so the second bind() will overwrite the first bind()'s callback.

@davidfooks
Copy link
Author

Is this a restriction of AMQP or just this library implementation?

@SLaks
Copy link

SLaks commented Mar 29, 2013

I'm not very familiar with the AMQP protocol, but it doesn't look like queue.bind-ok has any parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants