postwait/node-amqp — Issue #35: Allow For Easy Queue Binding
Author: jamescarr
Created: 2011-10-14 01:54:15+00:00
State: open

Currently when binding to a queue you MUST match the queue parameters exactly or it will not work at all. For example, if I have queue "a" that is durable and not auto-delete, the following code will never work:
```javascript
var q = conn.queue('a');

q.subscribe(function(msg){
console.log(msg);
});
```
But if I match what it really is:

```javascript
var q = conn.queue('a', {durable:true, autoDelete:false});

q.subscribe(function(msg){
console.log(msg);
});
```

It works.

I'd like to be able to just listen on a queue without knowing the explicit details of it. Or, if I get the options wrong it'd be nice to make a lot of noise rather than silently failing. :)

Thanks,
James