We are working on a phonegap app and are using node.js in combination with socket.io. We know that websockets aren't supported by phonegap yet, but that there are some ways to make them work (https://github.com/anismiles/websocket-android-phonegap and http://anismiles.wordpress.com/2011/02/03/websocket-support-in-android%E2%80%99s-phonegap-apps/)
Only problem is that these examples make them work by overwriting things that normally socket.io takes care of for you.
My question: Is there any way to use websockets in phonegap when your app uses socket.io?
Thanks.
Is there any way to use websockets in phonegap when your app uses socket.io?
Yes. There is a similar question here about generic WebSockets in Phonegap. My answer: http://stackoverflow.com/a/13527585/39904
This project example I link to in my example uses the Pusher JavaScript library, but you could substitute that for the socket.io library very easily.
For quick reference, here's the sample project: https://github.com/pusher/pusher-phonegap-android