Commit a8229bd5 by libai

测试

parent 84a5c8a4
Showing with 12 additions and 10 deletions
...@@ -563,16 +563,18 @@ ...@@ -563,16 +563,18 @@
ws.onerror = function(event) ws.onerror = function(event)
{ {
// 关闭 websocket // 关闭 websocket
if(recOk){ var guestid=$("#guestid").val();
var recNum=0 WebSocketStart(guestid,false)
timmer=setInterval(function(){ // if(recOk){
ws.close(); // var recNum=0
var guestid=$("#guestid").val(); // timmer=setInterval(function(){
WebSocketStart(guestid,false)
recNum++
if(recNum>=5)clearInterval(timmer)
}, 3000); // recNum++
} // if(recNum>=5)clearInterval(timmer)
// }, 3000);
// }
state("连接错误"); state("连接错误");
msgbulid(1,"会话意外断开,发送消息即可联系客服","系统",1); msgbulid(1,"会话意外断开,发送消息即可联系客服","系统",1);
console.error("WebSocket error observed:", event); console.error("WebSocket error observed:", event);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment