This commit is contained in:
richboo111
2023-06-12 14:16:00 +08:00
parent 3293103285
commit 866aa16bc5
5 changed files with 31 additions and 7 deletions

View File

@@ -92,6 +92,7 @@ func PingTimer() {
}
globals.SugarLogger.Debugf("PingTimer jx clientID ")
} else {
fmt.Printf("PingTimer mt心跳conn%s,%s", conn.ClientId, conn.ClientType)
if err := conn.Socket.WriteMessage(websocket.TextMessage, []byte(HeartCheckMsg)); err != nil {
fmt.Printf("PingTimer mtHeartBeat err:%v", err)
//对美团重新建立连接