reConnectSocketConnectTimer method
dynamic
reConnectSocketConnectTimer()
Implementation
reConnectSocketConnectTimer() {
_SocketConnecttimer?.cancel();
_SocketConnecttimer = null;
_SocketConnecttimer = Timer(Duration(seconds: 2), () async {
bool flag = await getInternetStatus();
if (flag) {
connectSocket(project_ID, completeAddresssForOne2Many);
}
});
}