1

I am trying to connect to WebSocket API : http://kaboom.rksv.net/ using Socket.IO framework for iOS, i am banging my head to understand how to open the connection with this.

I have tried many possibilities and it did not work. Any help would be greatly appreciated.

1 Answer 1

1

If the server talks the WebSocket protocol, you have to use a WebSocket client library. On the other hand, if the server talks the Socket.IO protocol, you have to use a Socket.IO client library. Below is an excerpt from Socket.IO page in Wikipedia.

Socket.IO is not a WebSocket library with fallback options to other realtime protocols. It is a custom realtime transport protocol implementation on top of other realtime protocols. Its protocol negotiation parts cause a client supporting standard WebSocket to not being able to contact a Socket.IO server. And a Socket.IO implementing client cannot talk to a non-Socket.IO based WebSocket or Long Polling Comet server. Therefore Socket.IO requires using the Socket.IO libraries on both client and server side.

Sign up to request clarification or add additional context in comments.

1 Comment

Yes i am the Socket.IO client library which is provided by Socket.IO but still i'm stuck. I am not able to establish a connection

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.