From 43c3d83bbd41ae5167ca5007c7bd7f41cb364a11 Mon Sep 17 00:00:00 2001 From: kamothi Date: Sat, 26 Oct 2024 13:15:27 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A2=85=EB=A3=8C=20=EC=B2=98=EB=A6=AC?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kutaverse/game/websocket/minigame/util/GameRoom.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/kutaverse/game/websocket/minigame/util/GameRoom.java b/src/main/java/kutaverse/game/websocket/minigame/util/GameRoom.java index c184536..76d8c90 100644 --- a/src/main/java/kutaverse/game/websocket/minigame/util/GameRoom.java +++ b/src/main/java/kutaverse/game/websocket/minigame/util/GameRoom.java @@ -133,8 +133,13 @@ public void endGameAndNotifyPlayers(MiniGameRequest miniGameRequest) throws Json String gameDataJson = objectMapper.writeValueAsString(gameResultDTO); // 각 유저에게 게임 종료 알림을 보낸다. +// players.values().forEach(session -> { +// session.send(Mono.just(session.textMessage("게임이 종료되었습니다. " + gameDataJson))).subscribe(); +// }); + + // players.values().forEach(session -> { - session.send(Mono.just(session.textMessage("게임이 종료되었습니다. " + gameDataJson))).subscribe(); + session.send(Mono.just(session.textMessage(String.valueOf(miniGameRequest)))).subscribe(); }); // 게임 데이터를 저장합니다.