wip
This commit is contained in:
@@ -162,7 +162,7 @@ wss.on('connection', function connection(ws) {
|
||||
});
|
||||
|
||||
// Handle upgrade of the request
|
||||
websocket_server.on('upgrade', function upgrade(request, socket, head) {
|
||||
wss.on('upgrade', function upgrade(request, socket, head) {
|
||||
const { pathname } = url.parse(request.url);
|
||||
|
||||
if (pathname === '/ws') {
|
||||
|
||||
Reference in New Issue
Block a user