nuclearace / Socket.IO-Client-Swift

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

ocketEngine doesn't communicate with the Engine.IO server #87

Closed DominikPalo closed 9 years ago

DominikPalo commented 9 years ago

I'm using Engine.IO on my server. All JavaScript Engine.IO clients communicates without problems with my server, but when I tried to use your swift SocketEngine as a client (without the Socket.IO wrapper), it doesn't connects to my server. Here is a logs after I call the SocketEngine.open:

2015-10-29 16:08:58.010 Client[13645:710239] Log SocketEngine: Starting engine
2015-10-29 16:08:58.010 Client[13645:710239] Log SocketEngine: Handshaking
2015-10-29 16:08:58.010 Client[13645:710239] Log SocketEngine: Doing polling request
2015-10-29 16:08:58.130 Client[13645:710265] Log SocketEngine: Got polling response
2015-10-29 16:08:58.131 Client[13645:710263] Log SocketEngine: Got message: Not Implemented

and my Engine.IO server doesn't logs any new connection.

When I switched my server to use Socket.IO and also client library to the SocketIOClient, it works fine, so it seems that the SocketEngine class dependes on some functioanlity from Socket.IO that is not contained in the Engine.IO.

nuclearace commented 9 years ago

Turn on logging on the server side. DEBUG=*

nuclearace commented 9 years ago

Try the latest version.