瀏覽代碼

添加close

xiaochan 4 月之前
父節點
當前提交
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();
     }
 
     /**