diff options
author | Vitaly Takmazov | 2016-07-25 22:48:10 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-27 13:56:45 +0300 |
commit | a18f5e5012b862992af40db60c83a40098342b53 (patch) | |
tree | 73f72b1ec6c374d92cc1ac714d5dc768956b2f4c /juick-ws/src/main/static/scripts.js | |
parent | 69af3f60d399157a8951988fa2f91d29c553fbb5 (diff) |
fix ws configuration
Diffstat (limited to 'juick-ws/src/main/static/scripts.js')
-rw-r--r-- | juick-ws/src/main/static/scripts.js | 4 |
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 |