Feat: WebSocket + STOMP 기본 설정 구현 (#33) #35
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.
📌 개요
🔨 작업 내용
WebSocket 설정 구현
WebSocketConfig클래스 생성 및 STOMP 메시지 브로커 설정/ws등록 (SockJS fallback 지원)setAllowedOriginPatterns("*")- 개발환경용)메시지 브로커 구성
/topic: 1:N 브로드캐스트 (방 채팅용)/queue: 1:1 메시지 (개인 DM용)/app: 클라이언트→서버 메시지 전송 prefix/user: 개인 메시지 전용 prefix헬스체크 API 구현
WebSocketTestController생성GET /api/websocket/health: 서버 상태 확인 엔드포인트GET /api/websocket/info: WebSocket 연결 정보 제공 엔드포인트패키지 구조 생성
com.back.domain.websocket.config: WebSocket 설정com.back.domain.websocket.controller: WebSocket 컨트롤러🔗 관련 이슈
Closes #33
📝 참고 사항
테스트 확인된 사항
/api/websocket/health,/api/websocket/info)/ws접근 가능다음 단계 작업 예정
개발환경 설정
*) - 프로덕션 환경에서는 제한 필요✅ 체크리스트