UNPKG

@voice-ping/cognitive-services-speech

Version:

VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft

19 lines (18 loc) 963 B
import { ConnectionEvent, ConnectionMessage, ConnectionOpenResponse, ConnectionState, EventSource, IConnection, IStringDictionary, IWebsocketMessageFormatter, Promise } from "../common/Exports"; import { ProxyInfo } from "./ProxyInfo"; export declare class WebsocketConnection implements IConnection { private privUri; private privMessageFormatter; private privConnectionMessageAdapter; private privId; private privIsDisposed; constructor(uri: string, queryParameters: IStringDictionary<string>, headers: IStringDictionary<string>, messageFormatter: IWebsocketMessageFormatter, proxyInfo: ProxyInfo, connectionId?: string); dispose: () => void; isDisposed: () => boolean; get id(): string; state: () => ConnectionState; open: () => Promise<ConnectionOpenResponse>; send: (message: ConnectionMessage) => Promise<boolean>; read: () => Promise<ConnectionMessage>; get events(): EventSource<ConnectionEvent>; }