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

20 lines
579 B
TypeScript
Raw Normal View History

2020-09-24 11:04:12 +08:00
/**
* WebSocket . CAD的服务
*/
export declare class WebSocketClientServer {
url: string;
private ws;
mode: string;
constructor(url?: string);
_ConnectionPromise: Promise<boolean>;
Connect(): Promise<boolean>;
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