0001
This commit is contained in:
@@ -17,5 +17,6 @@ export class Web{
|
||||
})
|
||||
app.use(express.static('static'));
|
||||
app.listen(Config.WEB_SERVER.PORT);
|
||||
this.app = app;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,5 +22,11 @@ export class WebSock {
|
||||
ws.send('something');
|
||||
});
|
||||
this.wss = wss;
|
||||
|
||||
/*Storage.web.app.on('upgrade', (request, socket, head) => {
|
||||
wss.handleUpgrade(request, socket, head, socket => {
|
||||
wss.emit('connection', socket, request);
|
||||
});
|
||||
});*/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user