1
0
Fork 0

Fix WS tracker

This commit is contained in:
Chocobozzz 2020-02-25 16:27:35 +01:00
parent 1647e4effd
commit 4832e41584
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -87,7 +87,7 @@ function createWebsocketTrackerServer (app: express.Application) {
}) })
server.on('upgrade', (request: express.Request, socket, head) => { server.on('upgrade', (request: express.Request, socket, head) => {
if (request.path === '/tracker/socket') { if (request.url === '/tracker/socket') {
wss.handleUpgrade(request, socket, head, ws => wss.emit('connection', ws, request)) wss.handleUpgrade(request, socket, head, ws => wss.emit('connection', ws, request))
} }