fix: 开启心跳检测
This commit is contained in:
parent
aa3151baa5
commit
bb33489c45
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue