From 24f53bb77f9ac80feb2e62e8ee670be4aa5f3c6e Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 13 二月 2025 11:56:42 +0800 Subject: [PATCH] 1、远程模块remote模块实现: (1、系统启动时向通信中间件注册消息接收者; (2、消息接收者ctr实现(测试阶段); 2、在配置文件增加配置Springboot RestTemplate网络请求超时时长; 3、其他一些测试与优化。 --- pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java index 9bcf52c..fd66ef4 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java @@ -27,7 +27,8 @@ // 瀹㈡埛绔繛鎺ヤ細璇濓紝閫氳繃瀹冪粰瀹㈡埛绔彂閫佹暟鎹� private Session session; - + // 瀹㈡埛绔笂绾挎椂鍒� + //private String onLineDt ; // 瀹㈡埛绔痠d private String id = ""; @@ -39,7 +40,11 @@ @OnOpen public void onOpen(Session session, @PathParam("id") String id) { this.session = session; + //this.onLineDt = DateTime.yyyy_MM_dd_HH_mm_ss() ; this.id = id; + if(this.id == null || this.id.length() == 0){ + this.id = "" + System.nanoTime() ; + } this.sendMessage(WebSocketHeartBeat.getHeartBeatMessage()); if (webSocketMap.containsKey(id)) { -- Gitblit v1.8.0