diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-07-31 19:51:07 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-07-31 19:51:07 -0400 |
commit | 5b4e72d70522eb61fd8cf2bbd619bb7ed4da2cfb (patch) | |
tree | 336fbb6bc81f78e6b469f97730ee39518feafb99 /scripts/client.js | |
parent | aecd8926c6c7bd7bcc0751e38b4459b57a87821c (diff) |
Add table toggle
Diffstat (limited to 'scripts/client.js')
-rw-r--r-- | scripts/client.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/client.js b/scripts/client.js index bceb7a4..92f518c 100644 --- a/scripts/client.js +++ b/scripts/client.js @@ -163,7 +163,11 @@ class Client{ { let m = e.detail; - if (TABLE_RPC.includes(m.type)) + if(m.type == "nojoin") { + alert(`Failed to join game. ${m.data}`); + } else if (m.type == "join") { + console.log("join not impl") + } else if (TABLE_RPC.includes(m.type)) this.table[m.type](m.data); } |