fix websocket url

This commit is contained in:
Feng Lee 2015-05-28 09:45:37 +08:00
parent aa3f882edf
commit 3ed65b419c
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
return document.getElementById(id); return document.getElementById(id);
} }
function go() { function go() {
ws = new WebSocket("ws://" + location.host + "/mqtt/wsocket"); ws = new WebSocket("ws://" + location.host + "/mqtt");
ws.onopen = function () { ws.onopen = function () {
$('connstate').innerHTML = 'CONNECTED'; $('connstate').innerHTML = 'CONNECTED';
} }