UNPKG

msg91-webrtc-call

Version:

**msg91-webrtc-call** is a lightweight JavaScript SDK that enables you to easily add peer-to-peer WebRTC audio/video calling functionality to your web applications using the MSG91 infrastructure.

8 lines (7 loc) 644 B
export declare function getUserData(userToken: string): Promise<any>; export declare function sendUserContext(userToken: string, data: any): Promise<any>; export declare const startNewCall: (callToken: string, ignoreBot?: boolean) => Promise<any>; export declare const rejoinCall: (callId: string, userToken: string) => Promise<any>; export declare const joinCall: (uid: string, callId: string, dtls: any, type: "producer" | "consumer") => Promise<void>; export declare const startProducing: (uid: string, callId: string, kind: any, rtp: any) => Promise<any>; export declare const endCall: (callId: string, userToken: string) => Promise<void>;