camstreamerlib
Version:
Helper library for CamStreamer ACAP applications.
14 lines (13 loc) • 374 B
TypeScript
export declare class WsClient {
private getUrl;
private getAuthToken;
isDestroyed: boolean;
private ws;
private restartTimeout;
constructor(getUrl: () => string, getAuthToken: () => Promise<string>);
init(): void;
send: (msg: string) => void;
onmessage: (_: MessageEvent) => void;
destroy: () => void;
private destroyWebsocket;
}