This is an Android app chat sample work as a client and PHP using the Ratchet project as Server and JS Websocket.