fix: 开启心跳检测

This commit is contained in:
fuzhongyun 2026-01-04 18:28:16 +08:00
parent aa3151baa5
commit bb33489c45
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ func (h *ChatService) Chat(c *websocket.Conn) {
}
// 开启心跳检测
//go client.InitHeartbeat(time.Duration(h.cfg.Sys.HeartbeatInterval))
go client.InitHeartbeat(time.Duration(h.cfg.Sys.HeartbeatInterval))
// 循环读取客户端消息
for {