mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
readme: fix server example, no params object
This commit is contained in:
parent
65c44e81f7
commit
ddbd10e552
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user