summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-21 18:42:09 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-21 18:42:09 +0100
commit0a000528fef098f64887988b41330cf917a0ed7e (patch)
treef13906c47a791966286a6242b7b470110dc6c20c /index.html
parenteffeea65388b116f3ec1a41e7596b39bf3c1d576 (diff)
downloadbridge-0a000528fef098f64887988b41330cf917a0ed7e.tar.gz
bridge-0a000528fef098f64887988b41330cf917a0ed7e.zip
use common format for socket message bodies
Diffstat (limited to 'index.html')
-rw-r--r--index.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.html b/index.html
index c686910..7ab1345 100644
--- a/index.html
+++ b/index.html
@@ -48,14 +48,16 @@
socket.on("player processed", function(msg) {
$("#updates").append(
$("<li>")
- .text("processed player " + msg)
+ .text("processed player " + msg.id +
+ " (" + msg.name + ")")
.css("color", "green")
);
});
socket.on("player compiled", function(msg) {
$("#updates").append(
$("<li>")
- .text("compiled player " + msg)
+ .text("compiled player " + msg.id +
+ " (" + msg.name + ")")
.css("color", "orange")
);
});