Skip to main content

The SDK uses a singleton pattern and needs to be initialized only once globally.

Parameters

ParameterTypeDescriptionMinimum version
appkeyStringUnique application identifier obtained when creating an application. Data is isolated by AppKey; all clients must use the same AppKey.1.0.0

Example

List<String> serverList = new ArrayList<>();
serverList.add("wss://ws.im.com");// "wss://ws.im.com" replace with the deployed server URL
JIM.getInstance().setServerUrls(serverList);
JIM.getInstance().init(this, "appkey");