Skip to content

Commit

Permalink
Merge pull request #86 from shammy642/fix-timer
Browse files Browse the repository at this point in the history
fixed timer
  • Loading branch information
lucfercas authored Oct 23, 2024
2 parents 5ba6bbe + ee645e8 commit 16b5ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ io.on("connection", (socket) => {
function startNextRoundTimer(gameId) {
if (games[gameId]) {
let timeRemaining = 60;
io.to(gameId).emit("start_next_round_timer", timeRemaining);
io.to(gameId).emit("start_timer", timeRemaining);
let timer = setInterval(() => {
timeRemaining -= 1;
if (games[gameId]) {
Expand Down

0 comments on commit 16b5ae6

Please sign in to comment.