Explorar el Código

避免websocket重连消息轰炸

Michael Wang hace 5 años
padre
commit
feadea23d2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/features/OnlineExam/Examing/ws.js

+ 1 - 1
src/features/OnlineExam/Examing/ws.js

@@ -5,7 +5,7 @@ import { VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO } from "@/constants/constants";
 let ws;
 let shouldReconnect = true;
 let heartbeatIds = [];
-const RECONNECT_INTERVAL = 3000;
+const RECONNECT_INTERVAL = 6 * 1000;
 const HEARTBEAT_INTERVAL = 50 * 1000;
 let reconnectNumber = 0;