UNPKG

commonui-lib-test

Version:

"#common ui lib test"

34 lines (33 loc) 1.23 kB
import SocketHandler from "../socket/socketHandler"; import BasicMsgHandler from "./basicMsgHandler"; import CommMsgHandler from "./commMsgHandler"; import { IQueryConfig } from "../../configData/clientConfig"; export declare class MessageHandler extends BasicMsgHandler { private static instance; static get Ins(): MessageHandler; connectAction: any; commMsgHandler: CommMsgHandler; gameMsgHandler: BasicMsgHandler; protected socketHandler: SocketHandler; private socket$; private subscriberList; constructor(); intiMessageHandler(commProto: any, gameProto: any): void; intiCommMsgHandler(commProto: any): void; intiGameMsgHandler(gameProto: any): void; initConnectAction(): void; initSocketHandler(socketHost: string): void; closeMessageHandler(): void; sendLogin(data: IQueryConfig): void; private onConnectActionNext; private reciveSocketConnect; private reciveSocketClose; private reciveLogin; private reciveLoginError; private reciveDisconnect; private reciveDisconnectError; private reciveCommMsg; private reciveCommMsgError; private reciveGameMsg; private reciveGameMsgError; }