zhoupeng 2 lat temu
rodzic
commit
3e90bfb3fd

+ 2 - 2
chaunyi_opc/opc_da/src/main/java/com/example/opc_da/config/WebSocket.java

@@ -58,9 +58,9 @@ public class WebSocket {
     @OnClose
     public void onClose() {
         webSocketSet.remove(this);
-        redisUtil.set("websocket" + userId, true, 10);
+        redisUtil.set("websocket" + userId, true, 5);
         try {
-            Thread.sleep(10000);
+            Thread.sleep(5000);
         } catch (InterruptedException e) {
             throw new RuntimeException(e);
         }