Skip to content

Commit

Permalink
🚀 v2: update basic example in readme
Browse files Browse the repository at this point in the history
• publish another npm update after PR: #53
  • Loading branch information
reqshark committed Jul 21, 2015
1 parent baf5f8f commit b60a513
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ var addr = 'tcp://127.0.0.1:7789'
pub.bind(addr);
sub.connect(addr);

sub.on('message', function (buf) {
console.log(String(buf));
pub.close();
sub.close();
sub.on('data', function (buf) {
console.log(String(buf));
pub.close();
sub.close();
});

setTimeout(function () {
pub.send("Hello from nanomsg!");
pub.send("Hello from nanomsg!");
}, 100);
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nanomsg",
"version": "2.0.0",
"version": "2.0.1",
"description": "Node bindings for nanomsg",
"main": "lib/index.js",
"dependencies": {
Expand Down

0 comments on commit b60a513

Please sign in to comment.