readme: fix server example, no params object

This commit is contained in:
Feross Aboukhadijeh 2014-07-12 18:41:08 -07:00
parent 65c44e81f7
commit ddbd10e552

View File

@ -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)