Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Java socket communication with Socket.IO

I'm writing a messaging app. My server is built on node.JS and socket.io. My client should be an Android application. However, I can't seem to find a decent library that gives me a Java interface to Socket.IO (by way of websockets?). Is there some library that exists? Or do I have to fall back on another solution (which one?)?

I've found this library for cocoa: https://github.com/fpotter/socketio-cocoa. Any alternatives for Android?

Thanks!

like image 541
philipDS Avatar asked May 16 '11 08:05

philipDS


1 Answers

The accepted answer was lacking. They are Java Socket.IO implementations, which require netty, or only had WebSocket support. I ended up writing my own Socket.IO client on top of a lightweight WebSocket client.

https://github.com/koush/AndroidAsync

like image 170
koush Avatar answered Oct 04 '22 21:10

koush