This article demonstrates how to create a XMPP-based chat application using the open source JavaScript library strophe. More information on the strophe library is provided in the Strophe.js document.
This article includes topics like chat application authenticating with a server, retrieving a contact list, opening a chat window, adding a contact and sending messages to contacts. All the information in this article is taken from the open source library, Converse.js
https://developer.tizen.org/community/tip-tech/chat-application