delight-im / delight-im/Android-DDP
wifi -> lte, when internet connection is changed, Connection timed out is occured immediately
- Dominant language
- Java
- Stars
- 274
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Description
hi. thank you for your library.
I have a question about reconnectivity.
when I turned off LTE and connected with WIFI, reconnection is completed.
but I turned off wifi and on LTE,
```
onException java.lang.Exception: com.neovisionaries.ws.client.WebSocketException: An I/O error occurred while a frame was being read from the web socket: Read error: ssl=0xae7acd80: I/O error during system call, Connection timed out
```
is occured immediately, 3 times.
and do not try reconnect to server.
so I inserted some code, "SystemClock.sleep(5000);", to wait establishing internet connection, and then turn off wifi and on lte.
after that, reconnection is completed.
I want to reconnect to server automatically whenever internet connection is changed. but I think if internet is not available, library don`t wait and just stop and throw above error.
how can I do this...
just check internet connection with ConnectivityManager, and control to wait to try reconnect by myself?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.