diff options
-rw-r--r-- | server.ts | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -116,6 +116,7 @@ const wss = new WebSocketServer({ server: server, path: '/tracker/socket' }) | |||
116 | wss.on('connection', function (ws) { | 116 | wss.on('connection', function (ws) { |
117 | trackerServer.onWebSocketConnection(ws) | 117 | trackerServer.onWebSocketConnection(ws) |
118 | }) | 118 | }) |
119 | wss.on('error', err => logger.error('Error in websocket server.', err)) | ||
119 | 120 | ||
120 | const onHttpRequest = trackerServer.onHttpRequest.bind(trackerServer) | 121 | const onHttpRequest = trackerServer.onHttpRequest.bind(trackerServer) |
121 | app.get('/tracker/announce', (req, res) => onHttpRequest(req, res, { action: 'announce' })) | 122 | app.get('/tracker/announce', (req, res) => onHttpRequest(req, res, { action: 'announce' })) |