using phonegap and nodejs
note: Android/assets/www/index.html
fill with your IP Address:
in line 4 script src="http://YOUR_IP/socket.io/socket.io.js"
and line 6 var socketio = io.connect("YOUR_IP:1337");
Enter in folder node, execute node main.js
access 127.0.0.1:1337 to view the chat
exemplo