Skip to content

Conversation

@sehee123
Copy link
Collaborator

@sehee123 sehee123 commented Jul 23, 2025

🛰️ Issue Number

🪐 작업 내용

  • 기존에 모든 메세지 응답은 브로드캐스트를 해주는 형태
  • reconnect, exit, gameSetting 등 브로드캐스트가 필요 없는 상황에서 불필요한 네트워크를 줄이기 위해 convertAndSendToUser() 를 사용
  • MessageSender 안에 sendPersonal () 로 구현

console에 개인메세지로 응답이 오는걸 확인했습니다.
image

변경 목록

  1. 방 입장 시 gameSetting 브로드캐스팅 -> 개인 메세지
  2. 퇴장 시 응답 개인메세지
  3. 재입장 시 systemNotice 제외 모든 응답은 개인 메세지
  4. 기존 MessageSend.sendsendBroadcast 로 메소드명 변경

📚 Reference

✅ Check List

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

sehee123 and others added 9 commits July 20, 2025 17:54
# Conflicts:
#	backend/src/main/java/io/f1/backend/domain/auth/dto/CurrentUserAndAdminResponse.java
#	backend/src/main/java/io/f1/backend/domain/game/app/RoomService.java
#	backend/src/main/java/io/f1/backend/domain/game/dto/MessageType.java
#	backend/src/main/java/io/f1/backend/domain/game/mapper/RoomMapper.java
#	backend/src/main/java/io/f1/backend/domain/game/model/Room.java
#	backend/src/main/java/io/f1/backend/global/config/WebSocketConfig.java
# Conflicts:
#	backend/src/main/java/io/f1/backend/domain/game/app/RoomService.java
#	backend/src/main/java/io/f1/backend/domain/game/dto/response/ExitSuccessResponse.java
@sehee123 sehee123 self-assigned this Jul 23, 2025
@sehee123 sehee123 added the refactoring 코드 리팩토링 label Jul 23, 2025
"/signup",
"/css/**",
"/js/**",
"/**",
Copy link
Collaborator

@jiwon1217 jiwon1217 Jul 23, 2025

Choose a reason for hiding this comment

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

이 url path를 추가하면 요청 전체가 permitAll로 설정됩니다 수정 부탁드립니다 !

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

재연결 pr이랑 마구마구섞였더니 .. 이런 실수를.. 감사합니다!!

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.

고생하셨습니다 !

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.

고생하셨습니다!

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.

와..! 정말 신기한 기능입니다. 재연결 시 다음 라운드부터 참가할 수 있도록 한 것도 좋은 것 같습니다 !!

sehee123 and others added 4 commits July 25, 2025 20:58
# Conflicts:
#	backend/src/main/resources/application.yml
# Conflicts:
#	backend/src/main/java/io/f1/backend/domain/game/app/GameService.java
#	backend/src/main/java/io/f1/backend/domain/game/app/RoomService.java
#	backend/src/main/java/io/f1/backend/domain/game/app/TimerService.java
#	backend/src/main/java/io/f1/backend/domain/game/dto/MessageType.java
@sehee123 sehee123 merged commit 6cb182c into dev Jul 25, 2025
@sehee123 sehee123 deleted the refactor/96 branch July 25, 2025 12:33
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.

6 participants