From 2c9c0cae8b343df012d38adcc7c16f6fdd5b7a7a Mon Sep 17 00:00:00 2001 From: dhmlau Date: Fri, 15 Nov 2024 15:03:21 -0500 Subject: [PATCH] fix: fix lint error Signed-off-by: dhmlau --- extensions/socketio/src/socketio.server.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/extensions/socketio/src/socketio.server.ts b/extensions/socketio/src/socketio.server.ts index 6a108f27fb14..db2e4398b788 100644 --- a/extensions/socketio/src/socketio.server.ts +++ b/extensions/socketio/src/socketio.server.ts @@ -25,10 +25,10 @@ import {cloneDeep} from 'lodash'; import {Server, ServerOptions, Socket} from 'socket.io'; import { getSocketIoMetadata, - SocketIoMetadata, SOCKET_IO_CONNECT_METADATA, SOCKET_IO_METADATA, SOCKET_IO_SUBSCRIBE_METADATA, + SocketIoMetadata, } from './decorators'; import {SocketIoBindings, SocketIoTags} from './keys'; import {SocketIoControllerFactory} from './socketio-controller-factory'; @@ -236,9 +236,11 @@ export class SocketIoServer extends Context { */ async stop() { const closePromise = new Promise((resolve, _reject) => { - this.io.close(() => { - resolve(); - }); + this.io + .close(() => { + resolve(); + }) + .catch(err => {}); }); await closePromise; if (this.httpServer) await this.httpServer.stop();