[master] update socket version and extends config of heart beat interval

This commit is contained in:
zhongchao
2023-11-03 17:08:36 +08:00
parent 3b84bd4bac
commit 5d42576fc3
4 changed files with 18 additions and 3 deletions

View File

@@ -67,7 +67,8 @@ public class ThirdSocketManager implements Callback, ErrorCallback {
.setDebug(cloudClientConfig.isShowDebugLog())
.setCustomTechBaseUrl(cloudClientConfig.getSocketTechUrl())
.setCustomBaseUrl(cloudClientConfig.getSocketBaseUrl())
.setLocation(mLocation);
.setLocation(mLocation)
.setHeartBeat(cloudClientConfig.getHeartBeatInterval());
SocketClient.getInstance().registerSocketCallback(this);
SocketClient.getInstance().registerErrorCallback(this);
SocketClient.getInstance().start(context);