diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/client.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/client.js b/scripts/client.js index 77b12b8..42ca5be 100644 --- a/scripts/client.js +++ b/scripts/client.js @@ -157,14 +157,15 @@ class Client{ this.socket.init(); } - joinGame(id) + joinGame(id, pass = "") { - this.table.openTable(); + this.lobby.setState("Joining...", "loading", this.socket.server); + this.socket.send("join", {id: id, pass: pass}); } leaveGame() { - + this.socket.send("leave", ""); } } |