feat: 분실물 쪽지 Polling API 추가 #2148
Open
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.
🔍 개요
🚀 주요 변경 내용
Polling 기반 채팅 구현
pollAllMessages호출 시마다 Redis에 사용자 세션을 갱신 (TTL 20초)하여 '접속 중' 상태를 유지is_read상태를 즉시 결정REST API 컨트롤러 추가
GET /messages: 메시지 조회 및 세션 갱신 (Polling용)POST /messages: 메시지 전송 (기존 WS send 대체)POST /leave: 채팅방 명시적 퇴장 (Session 즉시 삭제)💬 참고 사항
✅ Checklist (완료 조건)