Skip to content

Commit

Permalink
make example clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Sep 16, 2014
1 parent a5cd59e commit 57b41f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.markdown
Expand Up @@ -32,6 +32,7 @@ subclasses:
### Replication

Any Scuttlebutt subclass is replicated with createStream.
Create a server and then connect a client to it:

``` js
var Model = require('scuttlebutt/model')
Expand All @@ -46,6 +47,7 @@ net.createServer(function (stream) {

}).listen(8000, function () {

//then connect the client!
var stream = net.connect(8000)
stream.pipe(z.createStream()).pipe(stream)

Expand Down

0 comments on commit 57b41f0

Please sign in to comment.