A mobile chat application with web socket and phonegap