add 'warning' event to docs

This commit is contained in:
Feross Aboukhadijeh 2014-05-23 18:05:18 -07:00
parent eddef2f197
commit 0176c3d09b

View File

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