林旭祥 hai 6 meses
pai
achega
9f0f2176a9
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      src/utils/handWs.ts

+ 4 - 4
src/utils/handWs.ts

@@ -162,10 +162,10 @@ export function useWebSocket() {
     //   socketHand = null;
     // }
     // getClearTimer();
-    if (socketHand) {
-      socketHand.close();
-      socketHand = null;
-    }
+    // if (socketHand) {
+    //   socketHand.close();
+    //   socketHand = null;
+    // }
   });
 
   return { handWs, sendMessage, startLogin, startDevice, startHand, stateHand, closeHand };