Now shows buzz in order instead of lateTime

This commit is contained in:
Samuel Kent
2023-01-01 17:19:30 +11:00
parent 355a2c8bf4
commit 3bcc2710c9
5 changed files with 7 additions and 15 deletions
+2 -1
View File
@@ -47,7 +47,8 @@ io.on("connection", (socket) => {
buzzInfo.push({
userName: newUserName,
timeStamp: newTimeStamp,
lateTime: newTimeStamp-firstBuzzTimeStamp
lateTime: newTimeStamp-firstBuzzTimeStamp,
buzzOrder: buzzInfo.length+1
});
io.emit("buzzInfoToClient", buzzInfo);
// function buzzInfoToclient() {