Home » Nodejs » Android Java socket communication with Socket.IO

Android Java socket communication with Socket.IO

Posted by: admin December 21, 2017 Leave a comment


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?



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.