This commit is contained in:
tangzh 2025-05-26 23:28:57 +08:00
parent 442c759216
commit c429203106
2 changed files with 3 additions and 3 deletions

View File

@ -18,8 +18,8 @@ import java.util.concurrent.ConcurrentHashMap;
@Component @Component
public class DeviceWebSocketHandler extends TextWebSocketHandler { public class DeviceWebSocketHandler extends TextWebSocketHandler {
@Autowired @Lazy private @Autowired @Lazy
ThirdPartyWebSocketClient thirdPartyClient; private ThirdPartyWebSocketClient thirdPartyClient;
// 存储所有活跃的WebSocket会话键为会话ID // 存储所有活跃的WebSocket会话键为会话ID
private final ConcurrentHashMap<String, WebSocketSession> sessions = new ConcurrentHashMap<>(); private final ConcurrentHashMap<String, WebSocketSession> sessions = new ConcurrentHashMap<>();

View File

@ -110,7 +110,7 @@ weChat:
# socket地址 # socket地址
thirdparty: thirdparty:
ws: ws:
url: ws://127.0.0.1:8000/websocket url: ws://127.0.0.1:3030/websocket
# 文件存储路径 # 文件存储路径
file: file: