Socket.io-client-swift: @"connect" event never arrive but client seems connected

Created on 8 Feb 2016  Â·  3Comments  Â·  Source: socketio/socket.io-client-swift

Hi,

I am using the lib with Objective-C. and Socket.IO 1.4.5.

After call connect method the event called connect never get's called, but my server app log shows the client were actually connected and once I close the IOS app the server logs the user has leave.

Any clue? Thanks.

question

Most helpful comment

Is the socket a property of a class. Most of the time people complain about events not being emitted the socket is being released because it isn't being stored as a property.

All 3 comments

Is the socket a property of a class. Most of the time people complain about events not being emitted the socket is being released because it isn't being stored as a property.

It is an ivar, I will try it as a property, thanks!

On Monday, 8 February 2016, Erik Little [email protected] wrote:

Is the socket a property of a class. Most of the time people complain
about events not being emitted the socket is being released because it
isn't being stored as a property.

—
Reply to this email directly or view it on GitHub
https://github.com/socketio/socket.io-client-swift/issues/305#issuecomment-181618439
.

Sent from Gmail Mobile

It worked, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harshanakaru picture harshanakaru  Â·  4Comments

elitelokesh picture elitelokesh  Â·  6Comments

matthiasp42 picture matthiasp42  Â·  3Comments

MihaelIsaev picture MihaelIsaev  Â·  6Comments

leeyuno picture leeyuno  Â·  5Comments