Conversation
|
Caution Review failedThe pull request is closed. Walkthrough새로운 standalone HTML 채팅 UI를 구현하여 SockJS 및 STOMP 프로토콜을 통한 그룹 채팅을 지원합니다. 좌측 패널에서 연결 설정을 관리하고 우측 패널에서 메시지를 송수신하는 이중 패널 레이아웃을 포함합니다. Changes
Sequence Diagram(s)sequenceDiagram
participant User as 사용자
participant Browser as 브라우저<br/>(HTML Chat UI)
participant SockJS as SockJS<br/>Endpoint
participant Server as 서버<br/>(STOMP)
User->>Browser: 채팅 설정 입력<br/>(roomId, userId, nickname)
User->>Browser: Connect 버튼 클릭
Browser->>SockJS: WebSocket 연결<br/>(http://localhost:8080/ws)
SockJS->>Server: 연결 수립
Server-->>SockJS: CONNECTED
SockJS-->>Browser: 연결 상태 업데이트
Browser->>Browser: UI 상태 변경<br/>(CONNECTED 표시)
User->>Browser: Subscribe 버튼 클릭
Browser->>Server: /app/chat.join 전송<br/>(roomId, userId, nickname)
Browser->>Server: /topic/chat/rooms/{roomId}<br/>구독 요청
Server-->>Browser: 과거 메시지 전달 및<br/>구독 확인
Browser->>Browser: 채팅창 업데이트<br/>(룸 제목, 메시지 표시)
User->>Browser: 메시지 입력 및 Enter 키
Browser->>Browser: 중복 전송 가드 확인<br/>(200ms 검사)
Browser->>Server: /app/chat.send<br/>(roomId, content)
Server-->>Browser: /topic/chat/rooms/{roomId}에<br/>메시지 브로드캐스트
Browser->>Browser: 채팅 버블로<br/>메시지 표시
User->>Browser: Disconnect 버튼 클릭
Browser->>Server: /app/chat.leave<br/>(roomId, userId)
Browser->>SockJS: 연결 해제
SockJS->>Server: 연결 종료
Browser->>Browser: UI 상태 리셋<br/>(DISCONNECTED 표시)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#️⃣ Issue Number
📝 요약(Summary)
🛠️ PR 유형
어떤 변경 사항이 있나요?
📸스크린샷 (선택)
💬 공유사항 to 리뷰어
✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.
Summary by CodeRabbit
새로운 기능
✏️ Tip: You can customize this high-level summary in your review settings.