Skip to content

Conversation

@sehee123
Copy link
Collaborator

@sehee123 sehee123 commented Jul 18, 2025

🛰️ Issue Number

🪐 작업 내용

  • convertAndSend로 응답을 내려주는건 서비스 레이어 책임
    (메시지 발송이기때문에 SRP에 따라서 서비스가 담당)
  • 따라서 data로 명명되었던 DTO도 삭제
  • @silver-eunjoo 은주님 gameStart 부분 리팩토링 하시면 GameSocketController 에서 todo로 표해둔 messageSendergetDestination 삭제 부탁드립니다!

📚 Reference

✅ Check List

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

@sehee123 sehee123 linked an issue Jul 18, 2025 that may be closed by this pull request
1 task
@sehee123 sehee123 self-assigned this Jul 18, 2025
@sehee123 sehee123 added the refactoring 코드 리팩토링 label Jul 18, 2025
Copy link
Collaborator

@silver-eunjoo silver-eunjoo 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
Collaborator

@LimKangHyun LimKangHyun left a comment

Choose a reason for hiding this comment

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

고생하셨습니다! 웹소켓의 마스터로 가는길... 험난하군요🧙‍♂️

@sehee123 sehee123 requested review from dlsrks1021 and jiwon1217 July 18, 2025 12:08
Copy link
Collaborator

@jiwon1217 jiwon1217 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 !

messageSender.send(
destination,
MessageType.SYSTEM_NOTICE,
ofPlayerEvent(chatMessage.nickname(), RoomEventType.ENTER));
Copy link
Collaborator

Choose a reason for hiding this comment

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

[L3-중요질문]
플레이어가 보낸 채팅이 정답이었을 경우에 RoomEventType.ENTER를 전송하는 것은 아직 정답에 대한 EventType이 정의되어 있지 않아서일까요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

넵 맞습니다. 현재 은주님이 추가해놓고 변경 후 작업중이신걸로 알고있습니다.

sehee123 and others added 4 commits July 19, 2025 14:49
# Conflicts:
#	backend/src/main/java/io/f1/backend/domain/game/websocket/GameSocketController.java
@sehee123 sehee123 merged commit ceca5e6 into dev Jul 19, 2025
@sehee123 sehee123 deleted the refactor/86 branch July 19, 2025 07:30
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] convertAndSend 계층 변경

6 participants