严智鑫
2024-12-11 044c32c15ee9ccac6f3b60eb6745025e2f4480f2
JiuMuMesParent/common/servicebase/src/main/java/com/mes/tools/WebSocketServer.java
@@ -129,7 +129,6 @@
                        int startIndex = i * maxChunkSize;
                        int endIndex = Math.min(startIndex + maxChunkSize, length);
                        String chunk = message.substring(startIndex, endIndex);
                        // 判断是否是最后一块消息
                        boolean isLastChunk = (i == chunks - 1);
                        if(isLastChunk==true){
@@ -144,7 +143,7 @@
            }
        } catch (Exception e) {
            log.error("发送消息给客户端失败:{}", e.getMessage(), e);
            //log.error("发送消息给客户端失败:{}", e.getMessage(), e);
        }
    }