You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 14, 2024. It is now read-only.
Hello everyone, I am using socket.IO-objc in my project using XCode9.0. I am trying to paring or connect with hardware device with using particular IP Address and Port which connect successfully.
I am using below code. // create socket.io client instance socketIO = [[SocketIO alloc] initWithDelegate:self]; [socketIO connectToHost:@"myHost" onPort:port];
and then I am getting response from
(void) connection:(NSURLConnection *)connection didReceiveData:(NSData *)data in SocketIO.m class. Now data coming in every seconds. It is working well. But when I lock my iPhone then connection getting break. This is the main issue. So how I can use socket connection in background. Please guide me I stuck from last many days.
Thanks
The text was updated successfully, but these errors were encountered:
Yes, ios break all socket connections when your app goes in background, for that reason you have to support Push notification for important actions or get the updates every time your app reconnect again. Hope that helps
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello everyone, I am using socket.IO-objc in my project using XCode9.0. I am trying to paring or connect with hardware device with using particular IP Address and Port which connect successfully.
I am using below code.
// create socket.io client instance socketIO = [[SocketIO alloc] initWithDelegate:self]; [socketIO connectToHost:@"myHost" onPort:port];
and then I am getting response from
Thanks
The text was updated successfully, but these errors were encountered: