UNPKG

camstreamerlib

Version:

Helper library for CamStreamer ACAP applications.

32 lines (31 loc) 1.14 kB
/// <reference types="node" /> import EventEmitter from 'events'; import { Options } from '../internal/types'; import { TCamScripterEvent, TEventDeclaration, TEventUndeclaration, TCamScripterResponse } from '../types/CamScripterAPICameraEventsGenerator'; export declare class CamScripterAPICameraEventsGenerator extends EventEmitter { private tls; private tlsInsecure; private ip; private port; private user; private pass; private callId; private sendMessages; private timeoutCheckTimer; private wsConnected; private ws; constructor(options?: Options); connect(): void; disconnect(): void; declareEvent(eventDeclaration: TEventDeclaration): Promise<TCamScripterResponse>; undeclareEvent(eventUndeclaration: TEventUndeclaration): Promise<TCamScripterResponse>; sendEvent(event: TCamScripterEvent): Promise<TCamScripterResponse>; private createWsClient; private incomingWsMessageHandler; private sendMessage; private startMsgsTimeoutCheck; private stopMsgsTimeoutCheck; private reconnectWithError; private reportErr; private reportClose; }