Real-time quizz with websockets and multiple rooms
Since you've joined the lobby you have three choices :
- Join a room
- Create your own
- Wait, as the lobby is real-time sync, there is no need for refreshing !
The creation view allows you to define custom parameters such as the number of questions, or the delay before game starts.
No difference between the creator of the room and the others who joined, Just wait the game to start and observe who will play with you.
Once the game has started, nobody can enter the room and questions are sent by the server each X seconds.
Once answering server notifies you about the correctness and then refresh scores for all players. All players will be aware in real-time of who is winning.
At the end a game ladder is displayed, and the players can return to lobby.
The room stays visible a certain time before it is destroyed.