Let's integrate our SDK in few minutes

Getting started#
Download SDK Files
Download

Audio/Video Call SDKs for Web#

If you are already integrated the chat SDK in your application, then pass additional signalServer property with server URL in SDK.initializeSDK method.

signalServer: SIGNAL_SERVER_URL

Add the following callback listeners in callbackListeners property in SDK.initializeSDK method first argument object.

incomingCallListener,
callStatusListener,
userTrackListener,
muteStatusListener,
missedCallListener,
callSwitchListener,
inviteUsersListener,
mediaErrorListener,
callSpeakingListener,
callUsersUpdateListener,
callUserJoinedListener,
callUserLeftListener,
helper

Example#

callbackListeners:{
...chatCallbackListener,
incomingCallListener,
callStatusListener,
userTrackListener,
muteStatusListener,
missedCallListener,
callSwitchListener,
inviteUsersListener,
mediaErrorListener,
callSpeakingListener,
callUsersUpdateListener,
callUserJoinedListener,
callUserLeftListener,
helper
}

Without Chat#

We should initialize the SDK.

Initialize SDK#

const initializeObj = {
xmppSocketHost: `HOST`,
xmppSocketPort: `PORT`,
ssl: `SSL`,
encryptKey: `ENCRYPT_KEY`,
apiBaseUrl: `API_URL`,
signalServer: `SIGNAL_SERVER_URL`,
callbackListeners: {},
};
await SDK.initializeSDK(initializeObj);

Request Params#

ArgumentsDescriptionTypeRequired
xmppSocketHostXMPP Socket Host Domain NameStringtrue
xmppSocketPortXMPP Socket Port NumberNumbertrue
sslSSLBooleantrue
encryptKeyMessage Encryption KeyStringtrue
apiBaseUrlAPI Base URL for BackendStringtrue
signalServerSignal Server URLStringtrue
callbackListenersCheck here for callback listernersObjecttrue

Response Params#

ArgumentsDescriptionType
statusCodeStatus CodeNumber
messageSuccess/Error MessageString

Example Request#

const initializeObj = {
xmppSocketHost: "domain",
xmppSocketPort: 5281,
ssl: true,
encryptKey: "ddc0f15cc2c90fca",
apiBaseUrl: "https://domain.com/api/v1",
signalServer: "wss://domain.com",
callbackListeners: {
connectionListener,
incomingCallListener,
callStatusListener,
userTrackListener,
muteStatusListener,
missedCallListener,
callSwitchListener,
inviteUsersListener,
mediaErrorListener,
callSpeakingListener,
callUsersUpdateListener,
callUserJoinedListener,
callUserLeftListener,
helper
},
};
await SDK.initializeSDK(initializeObj);

Note: Check the Callback Event Listener Section to learn more about callbacks

Example Response#

{
"statusCode": 200,
"message": "Success"
}