Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 요약
🔖 변경 사항
socket disconnect 시에 세션에 저장된 userId와 chatRoomId를 통해, 유저가 채팅방을 떠난 시간을 저장하는 방식에서
유저가 채팅방을 떠날 때마다 http 요청을 보내면 서버에서 시간을 저장하는 로직으로 변경했습니다
비정상적인 disconnect가 발생한 경우에는 세션에 userId와 chatRoomId가 저장되어있지 않는 경우도 있는 것 같아서
해당 경우엔 userId로 user를 찾지 못하므로 불필요한 서버 오류가 많아지는 것 같아서 좀 더 확실한 방식을 선택했습니다
좋은 의견 있으시면 남겨주세요
✅ 리뷰 요구사항
📸 확인 방법 (선택)
📌 PR 진행 시 이러한 점들을 참고해 주세요