SocketRocket icon indicating copy to clipboard operation
SocketRocket copied to clipboard

iOS 14.7.1 Socket automatically close

Open cxz137131304 opened this issue 3 years ago • 0 comments

I encountered that after creating the socket, it was automatically closed after 5-10 seconds.

My iphone system: iOS 14.7.1; sdk version:0.6.0

first step: I create a socket and open it, it wrok well; second step: I close the previous socket,Then I create a new socket and open it. Wait for 5-10 seconds,I receive delegate (webSocket:(SRWebSocket *)webSocket didCloseWithCode:(NSInteger)code reason:(NSString *)reason wasClean:(BOOL)wasClean), this socket close without any reason; third step: I create a new socket again, and open it,now the new socket work well.

What the second socket wokr wrong? This BUG is inevitable.

cxz137131304 avatar Sep 22 '21 14:09 cxz137131304