Skip to content

Commit

Permalink
fix: 종료 처리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kamothi committed Oct 26, 2024
1 parent 8f723f3 commit 43c3d83
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

// 게임 데이터를 저장합니다.
Expand Down

0 comments on commit 43c3d83

Please sign in to comment.