websocket comm per json now
This commit is contained in:
@ -37,6 +37,9 @@
|
||||
if (event.data == "reload") {
|
||||
location.reload(true);
|
||||
}
|
||||
else if (event.data.startsWith("start game: ")) {
|
||||
let names = "..."
|
||||
}
|
||||
else {
|
||||
alert('unknown command: '+event.data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user