Fix WS tracker
This commit is contained in:
parent
1647e4effd
commit
4832e41584
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue