Skip to main content

Prerequisites

  1. Create an application in the Admin Console to obtain an AppKey and Secret.

  1. Call the server API to obtain tokens, or in the Admin Console select Application > Developer Tools > API > Users, then call the user-registration API to obtain two test tokens.

  1. Complete the integration by following the documentation.

Workflow

Example


JuggleIm.instance.init("{serverUrl}","{appkey}")
JuggleIm.instance.getConnectionManager().addConnectStatusListener((status,code)=>{
if(status === ConnStatus.Connected){

}
})

JuggleIm.instance.getConnectionManager().connect("{token}")