aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <stoned@derpymail.org>2019-07-22 00:24:44 +0200
committerstonedDiscord <stoned@derpymail.org>2019-07-22 00:24:44 +0200
commit856bcf2cb96997501d6e7f89865c8e3e35b63184 (patch)
treecf53591ff0d71051a1eee139a658f3718ae37150 /webAO
parenta2305f337dfae7376187969a96fa1d7cc0f12c8f (diff)
add optional old loading commands for low memory devices like the ps4
Diffstat (limited to 'webAO')
-rw-r--r--webAO/master.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/webAO/master.js b/webAO/master.js
index dba3c2c..7ddc9cd 100644
--- a/webAO/master.js
+++ b/webAO/master.js
@@ -72,6 +72,17 @@ function onMessage(e) {
descs[i] = args[1];
setTimeout(checkOnline(i, args[2] + ":" + args[3]), 3000);
}
+ } else if (header === "SN") {
+ const args = msg.split("#");
+ const i = args[1];
+ console.log(args);
+ document.getElementById("masterlist").innerHTML +=
+ `<li id="server${i}" class="unavailable" onmouseover="setServ(${i})"><p>${args[5]}</p>`
+ + `<a class="button" href="client.html?mode=watch&ip=${args[2]}:${args[4]}">Watch</a>`
+ + `<a class="button" href="client.html?mode=join&ip=${args[2]}:${args[4]}">Join</a></li><br/>`;
+ descs[i] = args[6];
+ masterserver.send("SR#" + i + "#%");
+ setTimeout(checkOnline(i, args[2] + ":" + args[4]), 3000);
} else if (header === "servercheok") {
const args = msg.split("#").slice(1);
console.log(args);