变更:提高WebSocket的重连速度

pull/1624/MERGE
ChenX 3 years ago
parent a8ed225688
commit a805469cf3

@ -1,4 +1,3 @@
import { IsDev } from "../Common/Deving";
import { Log } from "../Common/Log";
/**
@ -41,8 +40,8 @@ export class WebSocketClientServer
this.OnLinkEvent(false);
if (retry && e.code !== 1000 && !IsDev())
setTimeout(() => this.Connect(false), 20 * 1000);
if (retry && e.code !== 1000)
setTimeout(() => this.Connect(), 1 * 1000);
};
});
}

Loading…
Cancel
Save