严智鑫
2025-04-03 dedf9da2dc20825fbd3dee51f0a0546782ec0f9d
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);
        }
    }