mirror of
https://github.com/owenlejeune/AirHockey.git
synced 2025-11-12 10:32:44 -05:00
Spectators can now claim free paddles
This commit is contained in:
@@ -232,6 +232,8 @@ function joinGame(){
|
||||
var name = prompt("Please enter your name", "");
|
||||
socket.emit("newPlayerRequest", JSON.stringify({id: id, name: name}));
|
||||
joined = true;
|
||||
}else{
|
||||
socket.emit("spectatorJoinRequest", JSON.stringify({id: id}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user