NSString *urlString = @"ip address";
self.webSocket = [[SRWebSocket alloc] initWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]];
self.webSocket.delegate = self;
Stream end encountered
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.