Skip to content

Conversation

@sehee123
Copy link
Collaborator

@sehee123 sehee123 commented Jul 20, 2025

🛰️ Issue Number

🪐 작업 내용

  • 현재 send 요청과 disconnect 요청이 비동기처리로 순서가 보장되지 않아서 exit 로직이 정상 실행되지 않을 가능성이 있음
  • 순서를 보장하기 위해 exit 요청시 성공 여부를 응답
  • 방 삭제 시는 무조건 true 반환, 플레이어 삭제시는 isRemoved 플래그를 반환
  • 이부분은 프론트엔드 개발자님과 상의가 된 부분이라서 웹소켓 명세서도 추가 완료하였습니다.
  • 응답 확인
image

📚 Reference

✅ Check List

  • 코드가 정상적으로 컴파일되나요?
  • 테스트 코드를 통과했나요?
  • merge할 브랜치의 위치를 확인했나요?
  • Label을 지정했나요?

@sehee123 sehee123 linked an issue Jul 20, 2025 that may be closed by this pull request
2 tasks
@sehee123 sehee123 self-assigned this Jul 20, 2025
@sehee123 sehee123 added the refactoring 코드 리팩토링 label Jul 20, 2025

messageSender.send(destination, MessageType.PLAYER_LIST, playerListResponse);
messageSender.send(destination, MessageType.SYSTEM_NOTICE, systemNoticeResponse);
messageSender.send(
Copy link
Collaborator

Choose a reason for hiding this comment

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

[L5-참고의견]
exit_success 타입의 메시지가 브로드캐스팅 되는 형태이기 때문에,
프론트에서 분기 처리가 필요하다는 요청이 전해져야 할 것 같습니다.
(조건 없이 exit_success를 받을 때 구독을 해제하는 형태로 구현하시면 많이 꼬일 것 같습니다..)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

경찬님! 진짜 중요포인트 찝어 주셔서 감사합니다. 브로드캐스팅이아니라 1:1 응답 줄 수 있는 방법 있는걸로 아는데 그렇게 구현 변경하도록 하겠습니다! 👍

@sehee123 sehee123 closed this Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring 코드 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[refactor] 개인용 구독 경로 추가(convertAndSendToUser)

3 participants