amqp-as-promised
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -226,3 +226,2 @@ // Generated by CoffeeScript 1.6.3 | ||
exchange: exchange, | ||
queue: queue, | ||
bind: bind, | ||
@@ -229,0 +228,0 @@ shutdown: shutdown, |
{ | ||
"name": "amqp-as-promised", | ||
"description": "Promise wrappers for node-amqp", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -48,5 +48,10 @@ AMQP as Promised | ||
amqpc.queue('').then (q) -> | ||
amqpc.bind('myexchange', '', 'mytopic.#').then (q) -> | ||
console.log 'queue created: ' + q.name | ||
Or even shorter | ||
amqpc.bind('myexchange', 'mytopic.#').then (q) -> | ||
console.log 'queue created: ' + q.name | ||
## Shutting down | ||
@@ -53,0 +58,0 @@ |
Sorry, the diff of this file is not supported yet
14541
65
227