diff --git a/ios/UdpSocketClient.m b/ios/UdpSocketClient.m index e6a34f7..956053a 100644 --- a/ios/UdpSocketClient.m +++ b/ios/UdpSocketClient.m @@ -127,7 +127,7 @@ NSString *const RCTUDPErrorDomain = @"RCTUDPErrorDomain"; RCTResponseSenderBlock callback = [self getPendingSend:tagNum]; if (callback) { NSString *msg = error.localizedFailureReason ?: error.localizedDescription; - callback(@[msg ?: @"unkown error"]); + callback(@[msg ?: @"unknown error"]); [self dropPendingSend:tagNum]; } } diff --git a/ios/UdpSockets.m b/ios/UdpSockets.m index 04e8908..16559e8 100644 --- a/ios/UdpSockets.m +++ b/ios/UdpSockets.m @@ -62,7 +62,7 @@ RCT_EXPORT_METHOD(bind:(nonnull NSNumber*)cId if (![client bind:port address:address error:&error]) { NSString *msg = error.localizedFailureReason ?: error.localizedDescription; - callback(@[msg ?: @"unkown error when binding"]); + callback(@[msg ?: @"unknown error when binding"]); return; } @@ -98,7 +98,7 @@ RCT_EXPORT_METHOD(setBroadcast:(nonnull NSNumber*)cId if (![client setBroadcast:flag error:&error]) { NSString *msg = error.localizedFailureReason ?: error.localizedDescription; - callback(@[msg ?: @"unkown error when setBroadcast"]); + callback(@[msg ?: @"unknown error when setBroadcast"]); return; } callback(@[[NSNull null]]);