An example of how to build a real-time chat program with with Cordova and Ionic Framework