mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
没啥用的处理
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user