UNPKG

@telnyx/webrtc

Version:
25 lines (24 loc) 715 B
import BaseSession from '../BaseSession'; export declare const setWebSocket: (websocket: any) => void; export default class Connection { session: BaseSession; previousGatewayState: string; private _wsClient; private _host; private _timers; upDur: number; downDur: number; constructor(session: BaseSession); get connected(): boolean; get connecting(): boolean; get closing(): boolean; get closed(): boolean; get isAlive(): boolean; get isDead(): boolean; connect(): void; sendRawText(request: string): void; send(bladeObj: any): Promise<any>; close(): void; private _unsetTimer; private _handleStringResponse; }