Skip to content

Commit

Permalink
refactor(ios): remove deprecated property on tcp error callback
Browse files Browse the repository at this point in the history
    This removes the errorCode property that has been deprecated since sdk
    3.1.0

    BREAKING CHANGE: Removes deprecated tcp error callback errorCode property
  • Loading branch information
sgtcoolguy committed Dec 9, 2019
1 parent 7e405aa commit 6f4814d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions iphone/Classes/TiNetworkSocketTCPProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ - (void)startConnectingSocket;
NSString *message = [TiUtils messageFromError:err];
NSMutableDictionary *event = [TiUtils dictionaryWithCode:[err code] message:message];
[event setObject:self forKey:@"socket"];
[event setObject:NUMINTEGER([err code]) forKey:@"errorCode"];
[self _fireEventToListener:@"error" withObject:event listener:error thisObject:self];
}

Expand Down Expand Up @@ -719,7 +718,6 @@ - (BOOL)onSocket:(AsyncSocket *)sock shouldDisconnectWithError:(NSError *)err
if (error != nil) {
NSString *message = [TiUtils messageFromError:err];
NSMutableDictionary *event = [TiUtils dictionaryWithCode:[err code] message:message];
[event setObject:NUMINTEGER([err code]) forKey:@"errorCode"];
[event setObject:self forKey:@"socket"];
[self _fireEventToListener:@"error" withObject:event listener:error thisObject:self];
}
Expand Down

0 comments on commit 6f4814d

Please sign in to comment.