We included Pocketsocket.a file inside our objective c framework. The socket connection is not opening sometimes. We debugged inside PocketSocket code, we found that evaluateServerTrust method is called in a synchronous way by executeDelegateAndWait.
PocketSocket code:[self executeDelegateAndWait:^{
customTrustEvaluation = [_delegate respondsToSelector:@selector(webSocket:evaluateServerTrust:)];
}];
We changed synchronous to asynchronous by calling executeDelegate and everything worked fine. What is the reason in calling evaluateServerTrust method in a synchronous way?
We included Pocketsocket.a file inside our objective c framework. The socket connection is not opening sometimes. We debugged inside PocketSocket code, we found that evaluateServerTrust method is called in a synchronous way by executeDelegateAndWait. PocketSocket code: [self executeDelegateAndWait:^{ customTrustEvaluation = [_delegate respondsToSelector:@selector(webSocket:evaluateServerTrust:)]; }];
We changed synchronous to asynchronous by calling executeDelegate and everything worked fine. What is the reason in calling evaluateServerTrust method in a synchronous way?