We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eddef2f commit 0176c3dCopy full SHA for 0176c3d
README.md
@@ -92,8 +92,13 @@ var Server = require('bittorrent-tracker').Server
92
93
var server = new Server()
94
95
-// you must add an 'error' event handler!
96
server.on('error', function (err) {
+ // fatal server error!
97
+ console.log(err.message)
98
+})
99
+
100
+server.on('warning', function (err) {
101
+ // client sent bad data. probably not a problem, just a buggy client.
102
console.log(err.message)
103
})
104
0 commit comments