初始化版本库,可用
This commit is contained in:
20
types/ApplicationServices/WebSocketClientServer.d.ts
vendored
Normal file
20
types/ApplicationServices/WebSocketClientServer.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* 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
|
Reference in New Issue
Block a user