👢🐫 Checkpoint

./views/room.handlebars:530995/25
./public/style.css:530995/114
./server.js:530995/1209
./room.js:530995/875
./views/audience.handlebars:530995/1536
This commit is contained in:
Glitch (hello-express)
2020-04-09 15:38:44 +00:00
parent 5bf6096180
commit 970897a2f0
5 changed files with 63 additions and 17 deletions

View File

@@ -36,8 +36,8 @@
}));
};
socket.onmessage = function(msg) {
msg = JSON.parse(msg);
socket.onmessage = function(event) {
let msg = JSON.parse(event.data);
if (msg.type === "buzz") {
alert(`${msg.participant} buzzed`);
}