From ddbd10e5524437a3cd8891eec3257d93b9e044fb Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 12 Jul 2014 18:41:08 -0700 Subject: [PATCH] readme: fix server example, no params object --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 155475e..62ae6bf 100644 --- a/README.md +++ b/README.md @@ -115,14 +115,13 @@ server.listen(port) // listen for individual tracker messages from peers: -server.on('start', function (addr, params) { +server.on('start', function (addr) { console.log('got start message from ' + addr) - console.log('params in the message: ' + JSON.stringify(params)) }) -server.on('complete', function (addr, params) {}) -server.on('update', function (addr, params) {}) -server.on('stop', function (addr, params) {}) +server.on('complete', function (addr) {}) +server.on('update', function (addr) {}) +server.on('stop', function (addr) {}) // get info hashes for all torrents in the tracker server Object.keys(server.torrents)