UNPKG

@acaprojects/a2-composer

Version:
41 lines (40 loc) 1.46 kB
export declare class MockWebSocketInterface { private static retries; private counters; private end_point; private serv; private req_id; private uri; private connected; private reconnected; private connect_check; private connect_promise; private connecting; private requests; private fixed; private io; private keepAliveInterval; private auth; private watching; private systems; constructor(srv: any, auth: any, fixed?: boolean, host?: string, port?: string); setup(auth: any, host?: string, port?: string): void; onopen(evt: any): void; onclose(evt: any): void; bind(sys_id: string, mod_id: string, i: number, name: string, callback: () => void): Promise<any>; unbind(sys_id: string, mod_id: string, i: number, name: string, callback: () => void): Promise<any>; exec(sys_id: string, mod_id: string, i: number, fn: any, args: any): Promise<{}>; debug(sys_id: string, mod_id: string, i: number): any; ignore(sys_id: string, mod_id: string, inst: any): any; private setupSystems(); private connect(); private reconnect(); private startKeepAlive(); private stopKeepAlive(); private onmessage(evt); private fail(msg, type); private sendRequest(type, system, mod, index, name, args?); private notifyChange(r, value); private respondTo(type, r); } export declare let $WebSocketMock: typeof MockWebSocketInterface;