Refactor : 스터디룸 웹소켓 연동과 역할 변경 알림 (#146) #170
Merged
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.
📌 개요
1. 기존에는 Redis에 등록을 하기 위해서는 REST API, WebSocket 사용하는 두가지 경로로 잡혀있었음.
결국엔 Redis로 모이게 되는데 두가지 경로를 가지고 있어
중간 경로를 동일한 서비스를 사용 할 수 있게 만들기 위해서
RoomRedisService의 기능을 제거시키고, RoomParticipanService 경로로 통합 시켰습니다.
2. 기존에 역할을 변경시킬 시, DB 저장만 저장
🔨 작업 내용
RoomRedisService는 전달의 역할만 진행하고 웹소켓세션매니저가 일을 하고 있어 RoomParticipanService로 통합
역할을 변경시킬 시, DB 저장 + 웹 소켓으로 알림 전송 -> ui로 확인가능, 채팅창으로 알림 할 수 있음 (실시간 성 추가)
🔗 관련 이슈
Closes #169
📝 참고 사항
✅ 체크리스트