node-amqp
node-amqp copied to clipboard
How to check if a queue already exists or not ?
Is it possible, using the nodejs rabbitmq client to know if a queue already exist before trying to create it ?
Thanks
Please read README here
connection.queue(name[, options][, openCallback])
passive
: boolean, default false. If set, the server will not create the queue. The client can use this to check whether a queue exists without modifying the server state.
Yes I have read the readme, but that doesn't really help me, do you have any piece of code to explain it ?
That would be helpful thank you