重连测试

pull/23/head
taoshihan1991 5 years ago
parent 6b4926645d
commit f7767033ee

@ -252,12 +252,12 @@ new Vue({
let _this=this; let _this=this;
let mes = {} let mes = {}
mes.type = "ping"; mes.type = "ping";
mes.data = ""; mes.data = "visitor:"+_this.visitor.visitor_id;
setInterval(function () { setInterval(function () {
if(_this.socket!=null){ if(_this.socket!=null){
_this.socket.send(JSON.stringify(mes)); _this.socket.send(JSON.stringify(mes));
} }
},30000); },10000);
}, },
//初始化 //初始化
init(){ init(){

Loading…
Cancel
Save