| ... | ... | @@ -77,6 +77,8 @@ |
|
|
|
|
|
|
|
> User can join a challenge room by using the challenge room's `CODE` shared by the `GAMEMASTER`. After validating the joining `CODE` user receives JWT `TOKEN` titled `PLAYER` to proceed into the challenge game room. Header payload must include desired `PLAYER` `userName`.
|
|
|
|
|
|
|
|
Join Challenge call will trigger `newPlayer` socket to emit array of room's players to the socket listeners.
|
|
|
|
|
|
|
|
| Method | Route | Content type | Authentication |
|
|
|
|
|--------|-------|--------------|----------------|
|
|
|
|
| POST | /challenge/join/{roomCode} | `application/json` | No |
|
| ... | ... | |
| ... | ... | |