liurunyu
2025-02-11 f717ad3e0a712e823d61383f42de6faf917e7636
远程模块websocket中,如果客户端id为空,系统设置其一id
1个文件已修改
3 ■■■■■ 已修改文件
pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java
@@ -40,6 +40,9 @@
    public void onOpen(Session session, @PathParam("id") String id) {
        this.session = session;
        this.id = id;
        if(this.id == null || this.id.length() == 0){
            this.id = "" + System.nanoTime() ;
        }
        this.sendMessage(WebSocketHeartBeat.getHeartBeatMessage());
        if (webSocketMap.containsKey(id)) {