林旭祥 6 mesi fa
parent
commit
9f0f2176a9
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  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 };