mirror of
https://github.com/ayunami2000/ayunMultiPort.git
synced 2024-12-21 21:44:10 -08:00
FiX oMeGa IsSuE
This commit is contained in:
parent
2d4761a2e9
commit
988b3ef77d
|
@ -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}`);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user