From 95df4e046d05ffc574635e6ca4b13987cfc3f45e Mon Sep 17 00:00:00 2001 From: vvandenb Date: Sat, 18 Mar 2023 22:00:25 +0100 Subject: [PATCH] * Removed leave on disconnect chat socket --- back/volume/src/chat/chat.gateway.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/back/volume/src/chat/chat.gateway.ts b/back/volume/src/chat/chat.gateway.ts index 248253d..ebf4b70 100644 --- a/back/volume/src/chat/chat.gateway.ts +++ b/back/volume/src/chat/chat.gateway.ts @@ -42,9 +42,7 @@ export class ChatGateway implements OnGatewayConnection, OnGatewayDisconnect { async handleConnection (socket: Socket): Promise {} - async handleDisconnect (socket: Socket): Promise { - await this.onLeaveChannel(socket) - } + async handleDisconnect (socket: Socket): Promise {} @SubscribeMessage('joinChannel') async onJoinChannel (socket: Socket, connect: ConnectionDto): Promise {