Open slacken-github opened 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.
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.