Buzzing in now retracts your idk vote. Also added some new buzzers by request

This commit is contained in:
Samuel Kent
2023-12-13 19:22:37 +11:00
parent 00dc19952a
commit fb3327628f
16 changed files with 26 additions and 16 deletions
+5
View File
@@ -39,6 +39,11 @@ io.on("connection", (socket) => {
});
socket.on("buzzerPressed", (newUserName, newTimeStamp) => {
if (idkList.includes(newUserName)) {
const userIndex = idkList.indexOf(newUserName);
idkList.splice(userIndex, 1)
}
let firstBuzzTimeStamp = (function() {
if (buzzInfo.length == 0) {
return newTimeStamp