Permalink
Browse files

initial changes to implement version 0.9.1 of the AMQP specification

  • Loading branch information...
shimaore committed Dec 24, 2010
1 parent ca1c1b3 commit 9449050fe04092d5cc6eead08dfa3e21d63dd2ea
Showing with 2,941 additions and 3,961 deletions.
  1. +13 −3 README.md
  2. +2,843 −0 amqp-0-9-1.xml
  3. +0 −3,908 amqp-0.8.xml
  4. +0 −2 amqp-definitions-0-8.js
  5. +2 −0 amqp-definitions-0-9-1.js
  6. +81 −46 amqp.js
  7. +2 −2 package.json
View
@@ -3,7 +3,7 @@
IMPORTANT: This module only works with node v0.1.90 and later.
This is a client for RabbitMQ (and maybe other servers?). It partially
-implements the 0.8 version of the AMQP protocol.
+implements the 0.9.1 version of the AMQP protocol.
## Synopsis
@@ -35,7 +35,7 @@ An example of connecting to a server and listening on a queue.
## Connection
`new amqp.Connection()` Instantiates a new connection. Use
-`connection.connect()` to connect to a server.
+`connection.connect()` to connect to a server.
`amqp.createConnection()` returns an instance of `amqp.Connection`, which is
a subclass of `net.Stream`. All the event and methods which work on
@@ -145,11 +145,21 @@ bound it will not receive any messages.
If the `exchange` argument is left out `'amq.topic'` will be used.
+### queue.bind_headers([exchange,] routing)
+
+This method binds a queue to an exchange. Until a queue is
+bound it will not receive any messages.
+
+This method is to be used on an "headers"-type exchange. The routing
+argument must contain the routing keys and the `x-match` value (`all` or `any`).
+
+If the `exchange` argument is left out `'amq.headers'` will be used.
+
### queue.destroy(options)
Delete the queue. Without options, the queue will be deleted even if it has
-pending messages or attached consumers. If +options.ifUnused+ is true, then
+pending messages or attached consumers. If +options.ifUnused+ is true, then
the queue will only be deleted if there are no consumers. If
+options.ifEmpty+ is true, the queue will only be deleted if it has no
messages.
Oops, something went wrong.

0 comments on commit 9449050

Please sign in to comment.