Skip to content

[MESP-278] [Story] 게임 결과 알림 #507

Description

@DDINGJOO

📌 상위 Epic

#499

설명

AS A 사용자
I WANT 캐치마인드 게임이 끝나면 결과 알림을 받고 싶다
SO THAT 내 순위와 점수를 확인하고 다음 게임에 도전할 수 있다

인수 조건

  • 게임 종료 시 최종 순위 알림
  • 1등 시 특별 축하 알림
  • 내 점수 및 정답 수 표시
  • 연속 정답(streak) 달성 시 추가 알림

알림 메시지 스키마

게임 종료

```json
{
"type": "GAME_END",
"userId": "xxx",
"payload": {
"roomId": "room-xxx",
"gameSessionId": "game-xxx",
"rank": 1,
"totalPlayers": 4,
"score": 150,
"correctGuesses": 5,
"isWinner": true,
"endedAt": "2026-01-23T20:00:00Z"
}
}
```

연속 정답

```json
{
"type": "GAME_STREAK",
"userId": "xxx",
"payload": {
"roomId": "room-xxx",
"streak": 3,
"message": "3연속 정답! 🔥"
}
}
```

Tasks

  • GameService/GameAutoCloseHandler에서 게임 종료 시 SNS 발행
  • 참가자별 결과 알림 (각자 자기 순위만)
  • WebSocketMessageHandler에서 streak 달성 시 SNS 발행
  • 프론트엔드 게임 결과 알림 UI

트리거 위치

  • GameAutoCloseHandler.handleRequest() - 게임 자동 종료 시
  • GameService.stopGame() - 수동 종료 시
  • WebSocketMessageHandler - 정답 처리 시 streak 체크

예상 작업량

3 Story Points

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststoryUser story

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions