[master]expand the interface of socket, add sn

This commit is contained in:
zhongchao
2023-05-17 19:38:18 +08:00
parent 6a5e560f2a
commit b0446402be
7 changed files with 28 additions and 24 deletions

View File

@@ -49,7 +49,7 @@ public class SocketHandler {
*/
public void initSocket(Context context, String appId, double lat, double lon) {
mAppId = appId;
SocketManager.getInstance().init(context, lat, lon);
SocketManager.getInstance().init(context, "", lat, lon);
if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getNetMode() == HTTP_DNS_ENV_DEMO) {
SocketManager.getInstance().registerOnMessageListener(RealTimeConstant.DEMO_FREQUENCY_CHANNEL_ID, onMessageListener);
} else {