wansfa 1 năm trước cách đây
mục cha
commit
75a5044c11
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/utils/webSocket.js

+ 2 - 2
src/utils/webSocket.js

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