function createRoom() { var room_name = $('#room').val() + '@conference.localhost/' + sessionStorage.getItem("username");; Chat.mucCreateRoom(room_name); }
Category: XMPP
XMPP (Extensible Messaging and Presence Protocol) is an open XML technology which is widely used for messaging, real time communications( like bidding in real time) and presence.
You can use XMPP for building chat applications, group chat applications, showing users online/offline and sending data in real time like real time analytics or real time comment system.
Send message using strophe.js
function sendMsg(JID,MSG) { Chat.sendMessage(JID, MSG, "chat"); }
Connect and disconnect XMPP using strophe.js
function connect() { var jid = sessionStorage.getItem("jid"), password = sessionStorage.getItem("password"); var BOSH_SERVICE = Chat.BOSH_SERVICE; var debugginMode = false; Chat.connect(jid, password, BOSH_SERVICE, debugginMode); }
What is XMPP
XMPP (Extensible Messaging and Presence Protocol) is a protocol based on Extensible Markup Language (XML) and intended for instant messaging (IM) and online presence detection. It functions between or among servers, and facilitates near-real-time operation like chatting applications.