UNPKG

@telnyx/webrtc

Version:
105 lines (104 loc) 3.21 kB
export * from './errorCodes'; export declare const STORAGE_PREFIX = "@telnyx:"; export declare const ADD = "add"; export declare const REMOVE = "remove"; export declare const SESSION_ID = "sessId"; export declare const TIME_CALL_INVITE = "Time to call invite"; export declare const PROD_HOST = "wss://rtc.telnyx.com"; export declare const DEV_HOST = "wss://rtcdev.telnyx.com"; export declare const WS_CLOSE_CODES: { readonly NORMAL_CLOSURE: 1000; readonly GOING_AWAY: 1001; readonly PROTOCOL_ERROR: 1002; readonly UNSUPPORTED_DATA: 1003; readonly NO_STATUS_RECEIVED: 1005; readonly ABNORMAL_CLOSURE: 1006; readonly INVALID_FRAME_PAYLOAD: 1007; readonly POLICY_VIOLATION: 1008; readonly MESSAGE_TOO_BIG: 1009; readonly INTERNAL_ERROR: 1011; }; export declare const GOOGLE_STUN_SERVER: { urls: string; }; export declare const STUN_SERVER: { urls: string; }; export declare const STUN_DEV_SERVER: { urls: string; }; export declare const TURN_UDP_3478_SERVER: { urls: string; username: string; credential: string; }; export declare const TURN_TCP_3478_SERVER: { urls: string; username: string; credential: string; }; export declare const TURN_SERVER: { urls: string; username: string; credential: string; }[]; export declare const TURN_DEV_SERVER: { urls: string; username: string; credential: string; }[]; export declare const TURN_TLS_443_SERVER: { urls: string; username: string; credential: string; }; export declare const TURN_TLS_443_DEV_SERVER: { urls: string; username: string; credential: string; }; export declare const DEFAULT_PROD_ICE_SERVERS: RTCIceServer[]; export declare const DEFAULT_DEV_ICE_SERVERS: RTCIceServer[]; export declare const TELNYX_ICE_SERVERS: { readonly GOOGLE_STUN: { urls: string; }; readonly TELNYX_STUN: { urls: string; }; readonly TELNYX_TURN_UDP_3478: { urls: string; username: string; credential: string; }; readonly TELNYX_TURN_TCP_3478: { urls: string; username: string; credential: string; }; readonly TELNYX_TURNS_TCP_443: { urls: string; username: string; credential: string; }; }; export declare enum SwEvent { SocketOpen = "telnyx.socket.open", SocketClose = "telnyx.socket.close", SocketError = "telnyx.socket.error", SocketMessage = "telnyx.socket.message", SpeedTest = "telnyx.internal.speedtest", SocketActivity = "telnyx.internal.socketActivity", Ready = "telnyx.ready", Error = "telnyx.error", Warning = "telnyx.warning", Notification = "telnyx.notification", StatsFrame = "telnyx.stats.frame", StatsReport = "telnyx.stats.report", Messages = "telnyx.messages", Calls = "telnyx.calls", MediaError = "telnyx.rtc.mediaError", PeerConnectionFailureError = "telnyx.rtc.peerConnectionFailureError", PeerConnectionSignalingStateClosed = "telnyx.rtc.peerConnectionSignalingStateClosed", AIConversationMessage = "telnyx.ai.conversation" }