Large patch

This commit is contained in:
Ralex91
2024-02-04 17:53:45 +01:00
parent 8c57670742
commit 1e8bd44813
23 changed files with 402 additions and 221 deletions

View File

@@ -51,7 +51,7 @@ const Player = {
game.players.push(playerData)
io.to(socket.id).emit("game:successJoin")
socket.emit("game:successJoin")
},
selectedAnswer: (game, io, socket, answerKey) => {
@@ -72,7 +72,7 @@ const Player = {
points: convertTimeToPoint(game.roundStartTime, question.time),
})
io.to(socket.id).emit("game:status", {
socket.emit("game:status", {
name: "WAIT",
data: { text: "Waiting for the players to answer" },
})