From 9d385e3952606ac83ef3c11280d014a237585a04 Mon Sep 17 00:00:00 2001 From: Murat Merdoglu Date: Fri, 8 Mar 2024 13:26:47 +0100 Subject: [PATCH] add move column handler --- src/socket/socket/socket.gateway.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/socket/socket/socket.gateway.ts b/src/socket/socket/socket.gateway.ts index 39a4397..c9c41f3 100644 --- a/src/socket/socket/socket.gateway.ts +++ b/src/socket/socket/socket.gateway.ts @@ -90,6 +90,12 @@ export class SocketGateway this.logger.log(`Message received from client id: ${client.id}`); this.logger.debug(`Payload: ${data}`); client.broadcast.emit('move-card-success', data); - client.emit('move-card-success', data); + } + + @SubscribeMessage('move-column-request') + handleMoveColumn(client: any, data: any) { + this.logger.log(`Message received from client id: ${client.id}`); + this.logger.debug(`Payload: ${data}`); + client.broadcast.emit('move-column-success', data); } }