MegaBits / SIOSocket

Realtime iOS application framework (client) http://socket.io
MIT License
494 stars 80 forks source link

How to check connection status of socket? #32

Open KKUranium opened 9 years ago

KKUranium commented 9 years ago

When my app got suspended in background mode connection get lost. And when I am again putting it in foreground then reconnection takes around 1 min. That is why I want to know connection status so that I can create new connection coming back in foreground.

KKUranium commented 9 years ago

Is there anyone who can tell me about my query?

rodgerbenham commented 9 years ago

Hello I am also experiencing this issue, is there any workarounds for this currently?

KKUranium commented 9 years ago

BOOL connected = [[self.socket.javascriptContext evaluateScript: @"objc_socket.connected"] toBool];

On Tue, Feb 24, 2015 at 12:41 PM, Rodger Benham notifications@github.com wrote:

Hello I am also experiencing this issue, is there any workarounds for this currently?

— Reply to this email directly or view it on GitHub https://github.com/MegaBits/SIOSocket/issues/32#issuecomment-75709696.