FiX oMeGa IsSuE

This commit is contained in:
UnknownKeeper88888 2022-04-12 21:10:20 -04:00 committed by GitHub
parent 2d4761a2e9
commit 988b3ef77d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,8 @@ const httpsrv = require("http").createServer((req,res)=>{
const wss = new WebSocketServer({ server: httpsrv }); const wss = new WebSocketServer({ server: httpsrv });
wss.on('connection', function(ws) { wss.on('connection', function(ws) {
ws.on('error', function(er) {});
let client = null; let client = null;
makeWsMcClient(ws,c=>client=c); makeWsMcClient(ws,c=>client=c);
@ -184,4 +186,4 @@ function makeWsMcClient(ws,cb){
client.on('error', function(err) { client.on('error', function(err) {
//console.log(`Client Error: ${err}`); //console.log(`Client Error: ${err}`);
}); });
} }