An iOS client connecting to the server using socketrocket results in β€œEnd of Stream Failure,”

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

It didCloseWithCodeis called with reason Stream end encountered.

Any ideas on what could go wrong?

+4
source share
1 answer

For me, the problem is that the socket booster version is different from the client and server. You must use the same version for server and client.

+1
source

Source: https://habr.com/ru/post/1568735/


All Articles