Add websocket error handlers

Fixes #190
This commit is contained in:
Nick O'Leary
2014-04-01 23:18:34 +01:00
parent 6cc0df75a6
commit fa2d2771a7
2 changed files with 10 additions and 0 deletions

View File

@@ -94,6 +94,13 @@ DebugNode.wsServer.on('connection',function(ws) {
}
}
});
ws.on('error', function(err) {
util.log("[debug] ws error : "+err);
});
});
DebugNode.wsServer.on('error', function(err) {
util.log("[debug] ws server error : "+err);
});
DebugNode.logHandler = new events.EventEmitter();