wansfa 1 年之前
父節點
當前提交
75a5044c11
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/utils/webSocket.js

+ 2 - 2
src/utils/webSocket.js

@@ -23,8 +23,8 @@ export default {
                 this.socket=new WebsocketHeartbeat({
                 this.socket=new WebsocketHeartbeat({
                     url: server+uid,
                     url: server+uid,
                     userId:'r:'+uid,
                     userId:'r:'+uid,
-                    pingTimeout: 60000,
-                    pongTimeout: 50000
+                    pingTimeout: 15000,
+                    pongTimeout: 10000
                 });
                 });
                 let that=this;
                 let that=this;
                 // this.socket.onopen = function () {
                 // this.socket.onopen = function () {