We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fce8fdd commit 8f39511Copy full SHA for 8f39511
ios/TcpSockets.m
@@ -283,7 +283,7 @@ - (void)onClose:(NSNumber *)clientID withError:(NSError *)err {
283
}
284
285
- (void)onError:(TcpSocketClient *)client withError:(NSError *)err {
286
- NSString *msg = err.localizedFailureReason ?: err.localizedDescription;
+ NSString *msg = err.localizedDescription ?: err.localizedFailureReason;
287
[self sendEventWithName:@"error" body:@{@"id" : client.id, @"error" : msg}];
288
289
0 commit comments