UNPKG

camstreamerlib

Version:

Helper library for CamStreamer ACAP applications.

18 lines (17 loc) 514 B
import { IWsClient } from '../internal/types'; export declare class WsClient implements IWsClient { private getUrl; isDestroyed: boolean; private ws; private restartTimeout; constructor(getUrl: () => string); init(): void; send: (msg: string | ArrayBuffer) => void; onMessage: (_: ArrayBuffer | string) => void; onOpen: () => void; onClose: () => void; onError: (error: Error) => void; reconnect: () => void; destroy: () => void; private destroyWebsocket; }