Commit 8b9bff31 by libai

测试

parent a81e83d0
Showing with 2 additions and 1 deletions
...@@ -506,6 +506,7 @@ ...@@ -506,6 +506,7 @@
function WebSocketStart(guestid,send) { function WebSocketStart(guestid,send) {
clearInterval(timmer)
state("连接中"); state("连接中");
if(ws!=null&&ws.readyState == WebSocket.OPEN){ if(ws!=null&&ws.readyState == WebSocket.OPEN){
system("The socket is opening,please close first!"); system("The socket is opening,please close first!");
...@@ -523,7 +524,7 @@ ...@@ -523,7 +524,7 @@
} }
ws.onopen = function() ws.onopen = function()
{ {
clearInterval(timmer)
state("连接成功"); state("连接成功");
system("客服已接入"); system("客服已接入");
if(send){ if(send){
......
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