Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

airplane mode then reconnect #57

Open
wangpeng1 opened this issue Nov 27, 2012 · 5 comments
Open

airplane mode then reconnect #57

wangpeng1 opened this issue Nov 27, 2012 · 5 comments

Comments

@wangpeng1
Copy link

i meet a problem: when i common enter my app,then connect the server,i can send message,all is ok

but when i press home and enter setting choice the airplane mode close the wifi, then open the wifi close the airplane mode. then enter my app, socket cannot connet,if i do other internet request for example download pic, the progressDialog is always show.

@pkyeck
Copy link
Owner

pkyeck commented Nov 27, 2012

do you reconnect to the server manually after switching to/from airplane mode?

@wangpeng1
Copy link
Author

@wangpeng1
Copy link
Author

i call at - (void)applicationWillEnterForeground:(UIApplication *)application
{
socketIO = [[SocketIO alloc] initWithDelegate:self]; //socketIO.useSecure = YES; [socketIO connectToHost:@"localhost" onPort:80];
}

@wangpeng1
Copy link
Author

i received :[SocketIO webSocket:didFailWithError:] ERROR: Socket failed with error ... The operation couldn’t be completed. Socket is not connected when no wifi.but connect wifi not reconnect

@rscott78
Copy link

rscott78 commented Feb 4, 2013

I suspect this is similar to the issue I submitted here: #76

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

No branches or pull requests

3 participants