Please I need venerable expert contribution on this only:
1.) Am trying to get insight on how to build a Facebook like chat Messenger using Ajax,Jquery,html5 and Phonegap as a Wrapper(For cross multiple platform). Is this a good idea or approach?
2.) For Chat application I want to use either Ejabbered Client with XMPP or Web sockets. The chat will be require to periodically display typing status, instant notifications, Messaging sounds etc
Between this two technology Websocket and Ejabbered/XMPP which one is the best in terms of performance, latency reduction,cpu and Bandwith consumption reduction and battery life saver etc. Again between the Ejabbered Client/XMPP and Web Socket which of them is supported by phonegap.
3.) Does every hosting company supports Web sockets and Ejabbered Client/XMPP Server
4.) Please emphasize on the reason why one is prefered to the other.
Thanks