Commit Graph

5 Commits

Author SHA1 Message Date
kingecg c1ff9df98a chore: update module path to git.kingecg.top 2025-06-26 01:11:26 +08:00
kingecg e374da575e chore: update module path to git.kingecg.top 2025-06-25 23:59:10 +08:00
kingecg 3f666dd6f3 chore: update module path to git.kingecg.top 2025-06-25 22:59:33 +08:00
程广 f97b0b2ea7 feat(api): 实现 WebSocket 服务器的订阅功能
- 将 clients map 的值从 bool 改为 string,用于存储订阅的主题
- 在 handleWebSocket 函数中实现客户端注册逻辑
- 在 handleClient 函数中处理订阅请求,并保存订阅的主题
- 修改 handleDataChange 函数,仅向订阅了相应主题的客户端广播事件
- 在 DataPointID 结构中添加 MetricHash 方法,用于生成主题哈希值
2025-06-13 13:31:01 +08:00
kingecg 25a2c2de57 first gen 2025-06-10 21:38:06 +08:00