Skip to content

Commit

Permalink
adding events logging to the example
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlath committed Jan 23, 2015
1 parent fe8f77d commit 65191a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -55,6 +55,11 @@ var db = replicate(level('/tmp/db'))

db.put('some-key', 'some-value', function(err) {
})

db.on('connect', function(host, port){ console.log('connect', host, port) })
db.on('connection', function(host, port){ console.log('connect', host, port) })
db.on('error', function(err){ console.log('error', err) })

```
### Server 3...
Expand Down

0 comments on commit 65191a9

Please sign in to comment.