mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
没啥用的处理
This commit is contained in:
parent
ab9dfbc578
commit
44299459ff
@ -195,7 +195,10 @@ func (cp *commonPage) ws(c *gin.Context) {
|
||||
}
|
||||
count += 1
|
||||
if count%4 == 0 {
|
||||
conn.WriteMessage(websocket.PingMessage, []byte{})
|
||||
err = conn.WriteMessage(websocket.PingMessage, []byte{})
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
}
|
||||
time.Sleep(time.Second * 2)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user