Archived
1
0

Close sockets correctly

This commit is contained in:
Asher
2020-11-10 17:52:02 -06:00
parent f706039a9d
commit b8340a2ae9
2 changed files with 2 additions and 4 deletions

View File

@ -155,7 +155,7 @@ export const register = async (
const wsErrorHandler: express.ErrorRequestHandler = async (err, req) => {
logger.error(`${err.message} ${err.stack}`)
;(req as WebsocketRequest).ws.destroy(err)
;(req as WebsocketRequest).ws.end()
}
wsApp.use(wsErrorHandler)