Skip to content

Commit

Permalink
Fixed reconnection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Dec 11, 2022
1 parent 2d685ef commit 0a13cd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/ARTWebSocketTransport.m
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ - (ARTRealtimeTransportError *)classifyError:(NSError *)error {
type = ARTRealtimeTransportErrorTypeHostUnreachable;
} else if ([error.domain isEqualToString:@"NSPOSIXErrorDomain"] && (error.code == 57 || error.code == 50)) {
type = ARTRealtimeTransportErrorTypeNoInternet;
} else if ([error.domain isEqualToString:@"NSURLErrorDomain"] && (error.code == -1009)) {
type = ARTRealtimeTransportErrorTypeNoInternet;
} else if ([error.domain isEqualToString:ARTSRWebSocketErrorDomain] && error.code == 2132) {
id status = error.userInfo[ARTSRHTTPResponseErrorKey];
if (status) {
Expand Down

0 comments on commit 0a13cd6

Please sign in to comment.