socket.IO-objc
socket.IO-objc copied to clipboard
airplane mode then reconnect
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.
do you reconnect to the server manually after switching to/from airplane mode?
sorry i cannot understand your said,can you detai to said me.i post http://stackoverflow.com/questions/13584267/how-to-reconnect-socket-io-ios-client-when-wifi-is-switched-off-then-enabled-aga/13584402#13584402
i call at - (void)applicationWillEnterForeground:(UIApplication *)application { socketIO = [[SocketIO alloc] initWithDelegate:self]; //socketIO.useSecure = YES; [socketIO connectToHost:@"localhost" onPort:80]; }
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
I suspect this is similar to the issue I submitted here: https://github.com/pkyeck/socket.IO-objc/issues/76