mirror of
https://github.com/darverdevs/BetterMultiPort.git
synced 2024-10-18 02:25:59 -07:00
commit
bd6976be8b
|
@ -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}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user