Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
add move column handler
Browse files Browse the repository at this point in the history
  • Loading branch information
muratmerdoglu-dp committed Mar 8, 2024
1 parent 57a225e commit 9d385e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/socket/socket/socket.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 9d385e3

Please sign in to comment.