Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket: ✨ Send Chat Message Usecase #186

Merged
merged 16 commits into from
Oct 31, 2024
Merged

Conversation

psychology50
Copy link
Member

작업 이유

  • Authenticated user can send message using Socket API

작업 사항

1️⃣ Chat Message Sending Flow

{
   "content": "" // Required; max length: 5,000 characters
   "contentType": "" // Must match `MessageContentType` capitalization
}
  • SEND /pub/chat.message.{chatRoomId}

2️⃣ Fix chat_message Redis Key Format

image

  • Intended format: chatroom:{chatroom_id}:message:{message_id}, but was saved with {classpath}: prefix.
  • Cause: @RedisHash lacked a specified value, defaulting to the classpath.

image

  • Update successfully validated.

3️⃣ Refactor response message type to external message brocker

  • Switched from entity to DTO for RabbitMQ serialization convenience.

리뷰어가 중점적으로 확인해야 하는 부분

  • When Socket application is running, output Shutdown Signal: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'type' for exchange 'chat.exchange' in vhost '/': received 'direct' but current is 'topic', class-id=40, method-id=10) logs.
    • This results from an unassigned exchange type in @RabbitListener. 😅 (It's fixed now)

발견한 이슈

  • Not thing.

@psychology50 psychology50 added the enhancement New feature or request label Oct 31, 2024
@psychology50 psychology50 self-assigned this Oct 31, 2024
@psychology50 psychology50 merged commit 19be782 into dev Oct 31, 2024
1 check passed
@psychology50 psychology50 deleted the feat/PW-597-send-chat-message branch October 31, 2024 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant