UNPKG

commonui-lib-test

Version:

"#common ui lib test"

79 lines (78 loc) 2.14 kB
/** * @api {class} KeepAliveHandler * @apiName KeepAliveHandler * @apiGroup KeepAliveHandler * @apiDescription KeepAlive Handler */ export default class KeepAliveHandler { private gameRoot; private subscriber; private pingData; private pingTime; private checkTime; private maxLatency; constructor(root: any); /** * @api {function} initHandler * @apiName initHandler * @apiGroup KeepAliveHandler * @apiDescription init keepalive handler */ initHandler(): void; /** * @api {function} dispose * @apiName dispose * @apiGroup KeepAliveHandler * @apiDescription dispose keepalive handler */ dispose(): void; /** * @api {function} startPingServer * @apiName startPingServer * @apiGroup KeepAliveHandler * @apiDescription startPingServer */ private startPingServer; /** * @api {function} stopPingServer * @apiName stopPingServer * @apiGroup KeepAliveHandler * @apiDescription stopPingServer */ private stopPingServer; /** * @api {function} onHeartBeatData * @apiName onHeartBeatData * @apiGroup KeepAliveHandler * @apiDescription on ping to server event */ private onHeartBeatData; /** * @api {function} checkPingData * @apiName checkPingData * @apiGroup KeepAliveHandler * @apiDescription check ping to server data */ private checkPingData; /** * @api {function} onCheckPingDataFail * @apiName onCheckPingDataFail * @apiGroup KeepAliveHandler * @apiDescription on check ping to server fail event */ private onCheckPingDataFail; /** * @api {function} cleaAllTimer * @apiName cleaAllTimer * @apiGroup KeepAliveHandler * @apiDescription clear all check timer */ private cleaAllTimer; /** * @api {function} backLobby * @apiName backLobby * @apiGroup KeepAliveHandler * @apiDescription ping error window back button event */ private backLobby; }