Skip to content

Commit

Permalink
refactor: 소켓 연결 끊겼을 시 텍스트로 SOCKET_ERROR 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
ldhbenecia committed Apr 21, 2024
1 parent 09f8e30 commit e213334
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void handleDisconnection(Long userId, String sessionId) {
gameRooms.remove(gameRoom.getId()); // 방에 대한 참조를 해제합니다.
}

simpMessagingTemplate.convertAndSend("/topic/game/" + gameRoom.getId(), "사용자 " + userId + "의 연결이 끊겼습니다.");
simpMessagingTemplate.convertAndSend("/topic/game/" + gameRoom.getId(), "SOCKET_ERROR");
}
public void addSocket(Long userId, String sessionId) {
socketUserMap.put(userId, sessionId);
Expand Down

0 comments on commit e213334

Please sign in to comment.