MegaBits / SIOSocket

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

Why SIOSocket in Xcode Obj c very high flood connection ?? #72

Open slacken-github opened 6 years ago

slacken-github commented 6 years ago

I use this syntax for check client connected to my node server.

io.sockets.on('connection', function (socket) {}

I'm use socket.io in php (javascript). and these service show connection every 3-5 minutes/connection. Ok that good.

but I use in Xcode (Obj C) for create app client with syntax like this.

`[SIOSocket socketWithHost:socketHostUrl response:^(SIOSocket *socket) { self.socket = socket; __weak typeof(self) weakSelf = self; self.socket.onConnect = ^() { NSLog(@"Is connected and authorized."); weakSelf.socketIsConnected = YES;

    };
}];`

it's very high flood connection to my node server.

Why?? how do I fix it.

thank you for advance.