diff --git a/static/js/chat-page.js b/static/js/chat-page.js index 9404e38..7f73506 100644 --- a/static/js/chat-page.js +++ b/static/js/chat-page.js @@ -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(){