Skip to content

Commit

Permalink
fix: 강퇴 후 updateUSers 이벤트 발행 (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
student079 authored Nov 20, 2024
1 parent f6f9d0f commit 2501767
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions be/gameServer/src/modules/rooms/rooms.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export class RoomsGateway implements OnGatewayDisconnect {
);

this.server.to(roomId).emit('kicked', playerNickname);
this.server.to(roomId).emit('updateUsers', roomData.players);

this.logger.log(`Player ${playerNickname} kicked from room ${roomId}`);
} catch (error) {
Expand Down

0 comments on commit 2501767

Please sign in to comment.