version:2.2

fix:优化上传请求
update:
This commit is contained in:
2022-11-24 09:38:05 +08:00
parent 5c8fa1d823
commit c556082598
6 changed files with 27 additions and 176 deletions

View File

@@ -192,7 +192,6 @@ public class StepService extends Service implements NetworkUtils.OnNetworkStatus
// client.close();
// initSocketClient();
mHandler.postDelayed(heartBeatRunnable, HEART_BEAT_RATE);//开启心跳检测
}
@Override
@@ -202,7 +201,6 @@ public class StepService extends Service implements NetworkUtils.OnNetworkStatus
// client.close();
// initSocketClient();
mHandler.postDelayed(heartBeatRunnable, HEART_BEAT_RATE);//开启心跳检测
}
};
connect();
@@ -225,7 +223,6 @@ public class StepService extends Service implements NetworkUtils.OnNetworkStatus
}
}
}.start();
}
/**
@@ -279,7 +276,7 @@ public class StepService extends Service implements NetworkUtils.OnNetworkStatus
}
// -------------------------------------websocket心跳检测------------------------------------------------
private static final long HEART_BEAT_RATE = 30 * 1000;//每隔50秒进行一次对长连接的心跳检测
private static final long HEART_BEAT_RATE = 60 * 1000;//每隔50秒进行一次对长连接的心跳检测
private Handler mHandler = new Handler();
private Runnable heartBeatRunnable = new Runnable() {
@Override