amol- / tgext.socketio

SocketIO support for TurboGears throught gevent-socketio
MIT License
2 stars 1 forks source link

Does this extension allow to connect to an Android app using Socket.IO-client Java? #1

Open enriquebits opened 8 years ago

enriquebits commented 8 years ago

Hi, I could easily set up a chat on my web application based on the chat example. I would like to communicate with an Android mobile app using Socket.IO-client Java library (https://github.com/socketio/socket.io-client-java) which is simply, as its description says, ported from the JavaScript client. However, when I setup the socket on Android and try to connect to the server I always get a 406 status code like this:

GET /socketio/?EIO=3&transport=polling HTTP/1.1" 406 295 0.001943

This is the configuration on Android:

IO.Options options = new IO. options.path = "/socketio"; mSocket = IO.socket("http://192.168.1.xxxx:8080", options); Socket namespaceSocket = new Socket(mSocket.io(), "/chat"); namespaceSocket.connect();

Is it possible to connect both applications?

amol- commented 8 years ago

Didn't try it, tgext.socketio supported an old version of socket.io and if I'm not wrong they changed the library in a backward incompatible way recently. You might want to try with an older version of the java client if available.