Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Socket not opening(evaluateServerTrust method won't return anything) #82

Open
pothinenikarthik-plivo opened this issue Aug 9, 2019 · 0 comments

Comments

@pothinenikarthik-plivo
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant