Fix: 프론트 요청사항에 따른 WebRTC 시그널링 서버 수정 (#241) #247
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.
📌 개요
프론트엔드 요청사항에 맞춰 시그널링 서버의 DTO 및 에러 처리 로직을 수정하여 API 명세를 일치시켰습니다.
🔨 작업 내용
SDP 데이터 형식 변경
{"type": ..., "sdp": ...})으로 처리하기 위해SdpData를 도입하고 관련 DTO를 모두 수정했습니다.에러 응답 경로 및 형식 통일
@MessageExceptionHandler를 수정하여, 모든 예외 발생 시 프론트엔드와 약속한WebRTCErrorResponse형식으로 응답하도록 변경했습니다./user/queue/webrtc로 전송되도록 수정하여, 성공/실패 응답 경로를 단일화했습니다.컨트롤러 로직 개선
CustomException을 던지도록 변경하여, 컨트롤러 내 모든 예외 처리 경로를@MessageExceptionHandler로 통합했습니다.테스트 코드 수정
WebRTCSignalingControllerTest의 Mocking 및 검증 로직을 모두 수정했습니다.🔗 관련 이슈
Closes #241
📝 참고 사항
/user/queue/webrtc단일 채널을 통해 전달됩니다.✅ 체크리스트