Skip to content

Commit

Permalink
update socket/src/main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Jan 11, 2025
1 parent dc27445 commit eb7d9db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions socket/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ io.on("connection", (socket) => {
socket.join(room_code);
io.to(room_code).emit("update_room", { room_player, room });
console.log(`Player "${room_player}" rejoined room "${room_code}".`);
} else {
socket.emit("err_socket", { err_socket: "PLAYER_NOT_FOUND" });
}
}
});

/**
Expand Down

0 comments on commit eb7d9db

Please sign in to comment.