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

[Feature/9 chat client] 채팅 #20

Merged
merged 8 commits into from
Nov 5, 2023
Merged

[Feature/9 chat client] 채팅 #20

merged 8 commits into from
Nov 5, 2023

Conversation

Hyunuk17
Copy link
Member

@Hyunuk17 Hyunuk17 commented Nov 4, 2023

연결 이슈

요약

  • WebSocket을 이용한 채팅 구현

변경 내용

  • WebSocket 설정
    • Handshake : Server의 Endpoint로 연결 요청
  • Stomp 설정
    • 메시지 형식을 정의
    • 특정 경로로 메시지 전송(Send)
    • 특정 경로를 구독(Subscribe)하고 메시지 수신

기타

  • 채팅 기능의 흐름은 다음과 같습니다.
  1. 특정 Post에서 채팅하기 버튼을 클릭
  2. PostNum과 UserId로 채팅방(RoomID)과 채팅 내역 받음(Axios)
  3. WebSocket을 이용하여 채팅방(RoomID)을 구독(Sub), 메시지 수신
  4. 메시지 전송 시 Server의 경로에 RoomID를 담아 메시지 전송(JSON)

image

Copy link
Contributor

@cooperear cooperear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다.

Copy link

@goyoring goyoring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다

@Hyunuk17 Hyunuk17 merged commit 0346f41 into dev Nov 5, 2023
1 check passed
@Hyunuk17 Hyunuk17 deleted the feature/9_chat_client branch November 5, 2023 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants