xiaochan 4 месяцев назад
Родитель
Сommit
b8bd68625b
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      src/main/java/thyyxxk/webserver/http/websocket/SocketV2.java

+ 5 - 5
src/main/java/thyyxxk/webserver/http/websocket/SocketV2.java

@@ -36,27 +36,27 @@ public class SocketV2 {
         json.setMode("SINGLE");
         getPostApi("/intergrationPlatform")
                 .body(JSONUtil.toJsonStr(json))
-                .executeAsync();
+                .executeAsync().close();
     }
 
     public void sendUserCodeListMessage(WebSocketByListUserCode json) {
         json.setMode("MULTI");
         getPostApi("/intergrationPlatform")
                 .body(JSONUtil.toJsonStr(json))
-                .executeAsync();
+                .executeAsync().close();
     }
 
     public void sendMessageToAll(WebSocketToAll json) {
         json.setMode("ALL");
         getPostApi("/intergrationPlatform")
                 .body(JSONUtil.toJsonStr(json))
-                .executeAsync();
+                .executeAsync().close();
     }
 
     public void sendArchiveMessage(ArchiveSocketParam json) {
         getPostApi("/archive")
                 .body(JSONUtil.toJsonStr(json))
-                .executeAsync();
+                .executeAsync().close();
     }
 
     public void sendTask(SocketTask task) {
@@ -69,7 +69,7 @@ public class SocketV2 {
 
         getPostApi("/intergrationPlatform")
                 .body(js.toJSONString(0))
-                .executeAsync();
+                .executeAsync().close();
     }
 
     /**