diff options
Diffstat (limited to 'web-static/socket.html')
-rw-r--r-- | web-static/socket.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/web-static/socket.html b/web-static/socket.html index cf367e3..c0939da 100644 --- a/web-static/socket.html +++ b/web-static/socket.html @@ -38,7 +38,7 @@ <script type="text/javascript"> function State(req) { this.req = req - this.sock = new WebSocket("wss://rdimport.helsinki.at/rhctl/socket"); + this.sock = new WebSocket("ws://localhost:4080/socket"); this.sock_onmessage = function (event) { $('#statemsg').text(event.data); } @@ -58,13 +58,10 @@ s = new State(req); } - function init() { - $('#buttonstate').removeAttr('disabled','disabled'); - } function Subscription(req) { this.req = req - this.sock = new WebSocket("wss://rdimport.helsinki.at/rhctl/socket"); + this.sock = new WebSocket("ws://localhost:4080/socket"); this.sock_onmessage = function (event) { $('#rawmsg').append(event.data + "\n\n"); } |