nuclearace / Socket.IO-Client-Swift

socket.io-client for Swift
Other
361 stars 53 forks source link

Cannot connect to signalmaster released version #98

Closed dragonII closed 8 years ago

dragonII commented 8 years ago

Hi, I'm using this library to connect signalmaster.

I can connect signalmster successfully if I'm using the code by 'git clone'.

But when I switched to the released version (0.2.1 or 0.2.2), it failed.

I got the message from my ios log

2015-12-07 11:10:41.700 TestSocketIOSwift[946:273455] Log SocketIOClient: Adding handler for event: news 2015-12-07 11:10:41.702 TestSocketIOSwift[946:273455] Log SocketIOClient: Adding handler for event: created 2015-12-07 11:10:41.703 TestSocketIOSwift[946:273455] Log SocketIOClient: Adding handler for event: connect 2015-12-07 11:10:41.703 TestSocketIOSwift[946:273455] Log SocketIOClient: Adding handler for event: log 2015-12-07 11:10:41.703 TestSocketIOSwift[946:273455] Log SocketIOClient: Adding engine 2015-12-07 11:10:41.705 TestSocketIOSwift[946:273455] Log SocketEngine: Starting engine 2015-12-07 11:10:41.705 TestSocketIOSwift[946:273455] Log SocketEngine: Handshaking 2015-12-07 11:10:41.885 TestSocketIOSwift[946:273473] Log SocketIOClient: Handling event: reconnect with data: ( "Socket Disconnected" )

Is there anybody having the same problem?

Thanks

nuclearace commented 8 years ago

I just looked at what version of socket.io 0.2.2 is using and it's below 1.0.0. Which is what is required for this library

dragonII commented 8 years ago

So Socket.IO-Client-Swift only supported after socket.io 1.0.0, am I right?

nuclearace commented 8 years ago

Yes

dragonII commented 8 years ago

Thank you