You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If internet connectivity is lost (even for couple of seconds) during a SignalR hub connection then a RuntimeException is thrown. Which causes the entire application to crash. Instead can we throw some sort of network exception?
Sample existing code:
if (this.state.hubConnectionState != HubConnectionState.CONNECTING) {
return Completable.error(new RuntimeException("Connection closed while trying to connect."));
}
The text was updated successfully, but these errors were encountered:
rahatur
changed the title
Application crashes on loss of internet connectivity when starting a connection
Application crashes on loss of internet connectivity when starting a EebSocket connection
Feb 8, 2022
rahatur
changed the title
Application crashes on loss of internet connectivity when starting a EebSocket connection
Application crashes on loss of internet connectivity when starting a WebSocket connection
Feb 8, 2022
If internet connectivity is lost (even for couple of seconds) during a SignalR hub connection then a RuntimeException is thrown. Which causes the entire application to crash. Instead can we throw some sort of network exception?
Sample existing code:
The text was updated successfully, but these errors were encountered: