feat: 添加安全的WebSocket连接管理,支持ping任务功能

This commit is contained in:
Akizon77
2025-06-21 14:43:41 +08:00
parent 7c79020153
commit 562c8ffa3c
6 changed files with 168 additions and 8 deletions

View File

@@ -33,8 +33,9 @@ var RootCmd = &cobra.Command{
go update.DoUpdateWorks()
}
go server.DoUploadBasicInfoWorks()
server.EstablishWebSocketConnection()
os.Exit(0)
for {
server.EstablishWebSocketConnection()
}
},
}