MegaBits / SIOSocket

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

Not receiving events #39

Closed Praphin closed 9 years ago

Praphin commented 9 years ago

Hi. I've cloned this project, and tried a simple test with an existing socket.io v1.2.1 server. I've connected to the server, but can't receive any of the messages emitted by it. I tried both sending messages on the "update" event and on another custom one (which i've added a listener to in-app), but don't receive any of them. It was not receiving atleast onConnect event.

Is there anything I'm missing? Should I change anything else but the actual host?

mfeltmann commented 9 years ago

Had the same problem. Are you using the cocoapods version? It seems to differ from current master branch, so I updated the pods source file with the files from the master branch. Now it works for me. In my case the callback contained a '-' and was pasted as-is, which seemed to lead to some issues in the deeps of objective-c. The master branch version uses a hash instead of the pasted method name and works fine – at least for me.

Praphin commented 9 years ago

Its problem with my porperty declaration...after fixing that it works fine..