重连测试

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

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

Loading…
Cancel
Save