Reputation: 19825
Some requirements for a mobile chat room:
Should be able to work seamlessly with client's frequent connect/disconnect due to the mobile network
Bandwidth saving (less overhead)
I don't have experience in XMPP, I only have worked with Node.JS server and it is easy to setup and hack the server with JavaScript.
But seems XMPP is the defacto standard for chat room, e.g. WhatsApp use them., anyone can share your experience in these two technologies?
Upvotes: 0
Views: 3940
Reputation: 24282
You are kind of asking how can I get to my destination, should I drive my car, or take the railroad tracks. If you go with the railroad tracks, you still have to build your train.
XMPP is primarily used for chat and excels in that space. Websockets is much more similar to BOSH in XMPP, an extension to allow two way communications over HTTP. Websockets is just a connection protocol, as opposed to a realtime messaging protocol that actually supports the concept of chat. I would speculate that in the future, there will an extension added to XMPP to support Websockets, as it is a natural fit.
Not saying that you can't use Websockets, just that you will still have to build the 'chat' protocol on top of it, as opposed to using an existing one with many servers readily available.
Upvotes: 2