Reputation: 101
NSString *urlString = @"ip address";
self.webSocket = [[SRWebSocket alloc] initWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]];
self.webSocket.delegate = self;
[self.webSocket open];
Here didCloseWithCode
is called with reason Stream end encountered
.
Any ideas about what might go wrong?
Upvotes: 4
Views: 2169
Reputation: 101
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.
Upvotes: 1