From a18f5e5012b862992af40db60c83a40098342b53 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 25 Jul 2016 22:48:10 +0300 Subject: fix ws configuration --- juick-ws/src/main/static/scripts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-ws/src/main/static') 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 -- cgit v1.2.3