version:2.2
fix:优化上传请求 update:
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user