mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-19 04:31:36 +00:00
add 'warning' event to docs
This commit is contained in:
parent
eddef2f197
commit
0176c3d09b
@ -92,8 +92,13 @@ var Server = require('bittorrent-tracker').Server
|
||||
|
||||
var server = new Server()
|
||||
|
||||
// you must add an 'error' event handler!
|
||||
server.on('error', function (err) {
|
||||
// fatal server error!
|
||||
console.log(err.message)
|
||||
})
|
||||
|
||||
server.on('warning', function (err) {
|
||||
// client sent bad data. probably not a problem, just a buggy client.
|
||||
console.log(err.message)
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user