Skip to content
This repository has been archived by the owner on Mar 17, 2019. It is now read-only.

Commit

Permalink
Improve usage section
Browse files Browse the repository at this point in the history
  • Loading branch information
devfacet committed Mar 6, 2017
1 parent 26049f4 commit dea947d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -36,8 +36,17 @@ require('seneca')()
.act({role: 'foo', cmd: 'bar', arg1: 1, arg2: 2}, console.log);
```

```javascript
// nats.js

require('nats').connect().subscribe('*', function(msg) {
console.log(msg);
});
```

```bash
gnatsd
node nats.js
node server.js
node client.js
```
Expand Down

0 comments on commit dea947d

Please sign in to comment.