fixed issues with certain characters in user names

This commit is contained in:
Samuel Kent
2024-02-03 09:58:56 +11:00
parent 42cf703556
commit d03d5b0fd9
5 changed files with 25 additions and 7 deletions
+7
View File
@@ -94,12 +94,19 @@ io.on("connection", (socket) => {
teamName: teamName,
buzzerId: buzzerId
}
console.log(userInfo);
io.emit("userInfoToClient", userInfo);
});
//used by the host when they refresh the page.
socket.on("refreshUserInfo", () => {
io.emit("userInfoToClient", userInfo);
});
socket.on("unregisterUsers", () => {
userInfo = new Object();
io.emit("userInfoToClient", userInfo);
io.emit("reconnectUsers");
});
socket.on("objectionToServer", (userName) => {