aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main/static/scripts.js
diff options
context:
space:
mode:
Diffstat (limited to 'juick-ws/src/main/static/scripts.js')
-rw-r--r--juick-ws/src/main/static/scripts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-ws/src/main/static/scripts.js b/juick-ws/src/main/static/scripts.js
index 2691816d..9b4c721f 100644
--- a/juick-ws/src/main/static/scripts.js
+++ b/juick-ws/src/main/static/scripts.js
@@ -10,7 +10,7 @@ function ready(fn) {
}
ready(function() {
- var ws = new WebSocket('wss://ws.juick.com/_replies');
+ var ws = new WebSocket('wss://ws.juick.com/');
var term = new Terminal('terminal', {}, {});
var status = document.querySelector("#status");
ws.onopen = function() {
@@ -30,7 +30,7 @@ ready(function() {
.then(function(response) {
return response.text();
}).then(function(body) {
- status.textContent = JSON.parse(body).clientsCount;
+ status.textContent = JSON.parse(body).status;
})
}, 5000);
}) \ No newline at end of file