Skip to content

Commit

Permalink
fix: fix lint error
Browse files Browse the repository at this point in the history
Signed-off-by: dhmlau <[email protected]>
  • Loading branch information
dhmlau committed Nov 18, 2024
1 parent 129a29e commit 2c9c0ca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions extensions/socketio/src/socketio.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -236,9 +236,11 @@ export class SocketIoServer extends Context {
*/
async stop() {
const closePromise = new Promise<void>((resolve, _reject) => {
this.io.close(() => {
resolve();
});
this.io
.close(() => {
resolve();
})
.catch(err => {});
});
await closePromise;
if (this.httpServer) await this.httpServer.stop();
Expand Down

0 comments on commit 2c9c0ca

Please sign in to comment.