mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-05 00:50:21 +00:00
没啥用的处理
This commit is contained in:
1 parent
a45c743f1b
commit
665823dcba
1 file changed
+4
-1
@@ -195,7 +195,10 @@ func (cp *commonPage) ws(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
count += 1
|
count += 1
|
||||||
if count%4 == 0 {
|
if count%4 == 0 {
|
||||||
conn.WriteMessage(websocket.PingMessage, []byte{})
|
err = conn.WriteMessage(websocket.PingMessage, []byte{})
|
||||||
|
if err != nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
time.Sleep(time.Second * 2)
|
time.Sleep(time.Second * 2)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user