diff --git a/eagler.js b/eagler.js index c450776..4f295d1 100644 --- a/eagler.js +++ b/eagler.js @@ -48,6 +48,8 @@ const httpsrv = require("http").createServer((req,res)=>{ const wss = new WebSocketServer({ server: httpsrv }); wss.on('connection', function(ws) { + ws.on('error', function(er) {}); + let client = null; makeWsMcClient(ws,c=>client=c); @@ -184,4 +186,4 @@ function makeWsMcClient(ws,cb){ client.on('error', function(err) { //console.log(`Client Error: ${err}`); }); -} \ No newline at end of file +}