Skip to content

[FE] Backend에서 Websocket Error 보낼 시에, 처리 필요 #59

@minjacho42

Description

@minjacho42

Backend에서 Timeout이나 도중에 한명이 종료하는 경우,
{'status':'error', ...} 로 정보를 보내게 됩니다.
관련하여서 처리가 필요합니다.

  1. 만약에 도중에 한명의 연결이 끊긴 경우
    {'status':'error', 'winner':nickname, 'disconnected_player':[user1, ]}
    -> 이후에는 계속해서 다음 게임 진행
  2. 소켓에 예상한 인원이 들어오지 않아서 Timeout이 난 경우 (토너먼트의 경우 4명이 register하지 않았을 때)
    {'status':'error', 'message':'timeout'}
    -> 이후에 게임을 진행하지 않고 연결 종료
  3. 소켓에 접근한 사람의 정보를 Userdb에서 찾을 수 없는 경우 (일어날 가능성 없음)
    {'status':error','message':'DoesNotExist'}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions