mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 02:51:53 +08:00
increasing pings limit
This commit is contained in:
@@ -262,7 +262,7 @@ export function Session() {
|
|||||||
var __pingServer = function() {
|
var __pingServer = function() {
|
||||||
try {
|
try {
|
||||||
__missed_heartbeats += 1;
|
__missed_heartbeats += 1;
|
||||||
if (__missed_heartbeats >= 5) {
|
if (__missed_heartbeats >= 15) {
|
||||||
throw new Error("Too many missed heartbeats");
|
throw new Error("Too many missed heartbeats");
|
||||||
}
|
}
|
||||||
__ws.send(JSON.stringify({"event_type": "ping", "event": {}}));
|
__ws.send(JSON.stringify({"event_type": "ping", "event": {}}));
|
||||||
|
|||||||
Reference in New Issue
Block a user