Hari Hari - 1 year ago 160
iOS Question

iOS Client connecting to server using socketrocket results in "Stream end encountered"

NSString *urlString = @"ip address";
self.webSocket = [[SRWebSocket alloc] initWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]];
self.webSocket.delegate = self;
[self.webSocket open];

is called with reason
Stream end encountered

Any ideas about what might go wrong?

Answer Source

For me the issue is, socket rocket library version is different from client and server. You have to use the same version for both server and client.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download