Skip to content

Commit

Permalink
feat: release v3.1.0 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS authored Jul 6, 2016
1 parent c442210 commit 32b0fce
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,39 @@ AMQPTransport.connect(configuration, router).then(function (amqp) {

Publishes message to a route on an exchange defined in configuration

* `route` - routikngKey, must be string
* `message` - anything that can be stringified, it's advised for it to be small
* `options`:
* `options.timeout` - sets TTL on the message

### amqp.publishAndWait(route, message, [options])

Same as previous one, but specifies a correlation id and replyTo header, therefore allowing one
to receive a response.

* `route` - routikngKey, must be string
* `message` - anything that can be stringified, it's advised for it to be small
* `options`:
* `options.timeout` - sets TTL on the message

### amqp.send(queue, message, [options])

Sends message directly to a queue

* `queue` - queue name, must be string
* `message` - anything that can be stringified, it's advised for it to be small
* `options`:
* `options.timeout` - sets TTL on the message

### amqp.sendAndWait(queue, message, [options])

Sends message directly to a queue and sets replyTo and correlationId headers

* `queue` - queue name, must be string
* `message` - anything that can be stringified, it's advised for it to be small
* `options`:
* `options.timeout` - sets TTL on the message

## Tests

Run `make test` in order to run tests in the dockerized infrastructure. Currently runs tests in 5.x.x, 4.x.x and 0.10.40.
Expand Down

0 comments on commit 32b0fce

Please sign in to comment.