Skip to content

[MESP-300] [STORY] WebSocket 핸들러 및 브로드캐스트 구현 #527

Description

@DDINGJOO

배경

실시간 게임 진행을 위한 WebSocket 메시지 처리

수용 기준(AC)

  • WordChainHandler 구현
  • 게임 시작 메시지 처리
  • 단어 제출 메시지 처리
  • 실시간 게임 상태 브로드캐스트
    • 현재 단어, 다음 플레이어
    • 남은 시간
    • 사용된 단어 목록
    • 탈락자 알림
  • MessageType 추가
    • WORDCHAIN_START
    • WORDCHAIN_TURN
    • WORDCHAIN_CORRECT
    • WORDCHAIN_WRONG
    • WORDCHAIN_TIMEOUT
    • WORDCHAIN_END

메시지 구조

```json
{
"type": "wordchain_turn",
"data": {
"currentWord": "apple",
"nextLetter": "e",
"currentPlayer": "user-123",
"timeLimit": 13,
"round": 5,
"usedWordsCount": 12
}
}
```

연결된 Epic

#523

Metadata

Metadata

Assignees

No one assigned

    Labels

    storyUser 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