Conversation
feat(chat): 채팅방 채팅 메세지 전달 로직 디버깅 (#78)
|
Caution Review failedThe pull request is closed. Walkthrough채팅 전송 흐름을 경로 변수(roomId)에서 요청 본문(req.getRoomId()) 기반으로 변경하고, Redis 채널/구독 패턴을 chat.* 및 chat/*로 조정했습니다. 메시지 브로커 목적지와 Redis 수신자 라우팅을 갱신했으며, 예외 전파(JsonProcessingException) 및 디버그 출력이 추가되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client
participant MC as ChatMessagingController
participant ST as SimpMessagingTemplate
participant PR as ChatRedisPublisher
participant R as Redis
participant RS as RedisSubscriber
participant SUB as Subscribed Clients
rect rgba(230,245,255,0.5)
Note over C,MC: 채팅 전송 (roomId는 요청 바디에서)
C->>MC: SEND /chat/send (ChatSendRequest{roomId, ...})
MC->>MC: 멤버십 검증, 메시지 저장
MC->>ST: convertAndSend(/topic/chat/{roomId}, payload+createdAt)
end
rect rgba(240,255,240,0.5)
MC->>PR: publishToRoom("chat.{roomId}", payload) [throws JsonProcessingException]
PR->>R: PUBLISH channel=chat.{roomId}, json
end
rect rgba(255,245,230,0.5)
R-->>RS: Message on chat/* (PatternTopic)
RS->>ST: convertAndSend(/chat/{id}, parsedMessage)
ST-->>SUB: Broadcast
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (4)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit