Open losedMemory opened 1 year ago
I have multiple domain names that need to be switched, and when I call openButtonClick multiple times, there is a memory leak
- (void)openButtonClick { if (self.webSocket) { [self.webSocket close]; self.webSocket.delegate = nil; self.webSocket = nil; } NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"wss://www.doex.com/ws/quote/v1"]]; [request setTimeoutInterval:6]; [self setHttpHeaderRequest:request]; self.webSocket = [[SRWebSocket alloc] initWithURLRequest:request]; self.webSocket.delegate = self; [self.webSocket open]; }
SocketRocket (0.6.0)
Have you had any luck fixing this issue?
您有幸解决这个问题吗?
No, I haven't solved the problem yet. I'm using 'Starscream'.
I have multiple domain names that need to be switched, and when I call openButtonClick multiple times, there is a memory leak
SocketRocket (0.6.0)