Web Sockets vs. XMPP: Which Is Better For Chat Application?

XMPP Vs WebSocket – Who Is a Clear Winner?

If you are willing to build a chat application, one of the most common ways of doing so is to use an existing chat framework. However, if you are willing to develop an application from scratch, you will need to make several decisions and take several factors into consideration

there is no obvious winner between the two chat protocols. Whether you end up using XMPP or WebSocket or even both (more on that later), the winner is the one which best suits your specific use cases and business requirements.

If you're still on the fence about which protocol to choose, these resources can help you learn more:

2. 20 XMPP Use Cases