Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect after websocket webSocket:didFailWithError: #49

Closed
mogui opened this issue Sep 16, 2012 · 1 comment
Closed

Reconnect after websocket webSocket:didFailWithError: #49

mogui opened this issue Sep 16, 2012 · 1 comment

Comments

@mogui
Copy link

mogui commented Sep 16, 2012

Hi I'm having this problem:

I've already read the closed issue regarding disconnection here but I'm still having problems.

if connection get lost with webSocket:didFailWithError: (saying by putting down teh websocket server)
and i create a new SRWebSocket and try to reconnect it hangs up here:

   [_outputStream scheduleInRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode];
   [_inputStream scheduleInRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode];


   // of this method
   - (void)_connectToHost:(NSString *)host port:(NSInteger)port;

am i doing something wrong ? my code is very simple it just on webSocket:didFailWithError: realloc a new SRWebSocket and open it after a delay

@mogui
Copy link
Author

mogui commented Sep 16, 2012

Don't bother It was my fault, I wasn't using ARC in my project so something wasn't cleanly realesed.
Using arc the problem doesn't exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant