|
|
@ -578,7 +578,7 @@
|
|
|
|
$.cookie('userID', '0000');
|
|
|
|
$.cookie('userID', '0000');
|
|
|
|
var wsImpl = window.WebSocket || window.MozWebSocket;
|
|
|
|
var wsImpl = window.WebSocket || window.MozWebSocket;
|
|
|
|
console.log("connecting to server ..");
|
|
|
|
console.log("connecting to server ..");
|
|
|
|
window.ws = new wsImpl('ws://127.0.0.1:7181');
|
|
|
|
window.ws = new wsImpl('ws://121.36.58.109:7181');
|
|
|
|
ws.onmessage = function (evt) {
|
|
|
|
ws.onmessage = function (evt) {
|
|
|
|
let result = $.parseJSON(evt.data);
|
|
|
|
let result = $.parseJSON(evt.data);
|
|
|
|
console.log(result);
|
|
|
|
console.log(result);
|
|
|
|