webcad-ue4-api/types/ApplicationServices/WebSocketClientServer.d.ts

20 lines
601 B
TypeScript
Raw Normal View History

2021-01-28 10:17:21 +08:00
/**
* WebSocket . CAD的服务
*/
export declare class WebSocketClientServer {
url: string;
private ws;
mode: string;
constructor(url?: string);
_ConnectionPromise: Promise<boolean>;
2021-07-28 10:23:42 +08:00
Connect(retry?: boolean): Promise<boolean> | true;
2021-01-28 10:17:21 +08:00
Send(msg: string): Promise<void>;
/**
* . AOP可接入此函数
* @param {MessageEvent} event
*/
OnMessage: (event: MessageEvent) => void;
OnLinkEvent(isLink: boolean): void;
Close(): Promise<void>;
}
//# sourceMappingURL=WebSocketClientServer.d.ts.map