diff --git a/src/node/routes/index.ts b/src/node/routes/index.ts index a7b7c185..4688d6a2 100644 --- a/src/node/routes/index.ts +++ b/src/node/routes/index.ts @@ -165,7 +165,7 @@ export const register = async ( app.use(errorHandler) - const wsErrorHandler: express.ErrorRequestHandler = async (err, req) => { + const wsErrorHandler: express.ErrorRequestHandler = async (err, req, res, next) => { logger.error(`${err.message} ${err.stack}`) ;(req as WebsocketRequest).ws.end() }