Native Socket.IO and Android
socket.io
socket.io
On a similar note, anyone know of equivalent options for iOS? I see a few open source implementations, but none that are actively developed. There's SocketRocket, but that's just vanilla WebSockets.
I've just had a heated debate about this at work. I think it's pretty cool, my colleague thinks it's the worst idea ever.
Does this actually work in the real world? What if i'm moving?
Socket.io (especially > 1.0) solves these issues with a layer by having smart reconnection mechanisms and starts by connecting over plain old HTTP longpolling, and upgrades the connection to use websockets if they're available and work.
https://www.npmjs.com/package/websocket.io
You can use that, and the built-in WebSocket object in modern browsers.