[优化] 增加断开 WebSocket 客户端的功能,优化连接管理

This commit is contained in:
ryan
2026-05-30 18:08:06 +08:00
parent cef3694d11
commit f4a53d6b5f
4 changed files with 23 additions and 1 deletions
+1
View File
@@ -130,6 +130,7 @@ func DeleteNode(id uint) error {
return err
}
invalidateAgentTokenCache(node.AgentToken)
DisconnectAgentWSClient(node.NodeID)
return nil
}