Skip to content

Commit

Permalink
bugfix9
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshinonyaruko committed Nov 8, 2023
1 parent ac05d43 commit 47b672c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mylog/mylog.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,6 @@ func WsHandlerWithDependencies(c *gin.Context) {
// 输出新的 WebSocket 客户端连接信息
fmt.Println("新的webui用户已连接!")

// Start a goroutine for heartbeats
go func() {
for {
time.Sleep(5 * time.Second) // send a heartbeat every 30 seconds
client.conn.WriteMessage(websocket.PingMessage, nil)
}
}()

go client.writePump()
go client.readPump()

Expand Down

0 comments on commit 47b672c

Please sign in to comment.