Skip to content

Commit

Permalink
Updated publish methods in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedwell committed Mar 7, 2017
1 parent b6d1159 commit 9d4e395
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -70,6 +70,11 @@ var tortoise = new Tortoise('amqp://localhost', options);

## Publishing to a queue

`publish(message, [options])`

Where `options` is the same as [amqplib publish](http://www.squaremobius.net/amqp.node/channel_api.html#channel_publish)

Example:
```javascript
tortoise
.queue('my-queue', { durable:false })
Expand All @@ -78,6 +83,11 @@ tortoise

## Publishing to an exchange

`publish(routingKey, message, [options])`

Where `options` is the same as [amqplib publish](http://www.squaremobius.net/amqp.node/channel_api.html#channel_publish)

Example:
```javascript
tortoise
.exchange('my-exchange', 'direct', { durable:false })
Expand Down

0 comments on commit 9d4e395

Please sign in to comment.