Jaxl 2.0.3 (Jabber XMPP Library in PHP) comes with 15 XMPP extensions including XEP-0045 a.k.a. Multi-User Chat (Conference Room). In this blog post, we will go through all the methods available for XMPP applications developed using Jaxl library.
Using MUC methods
You need to include Jaxl implementation of XEP-0045 in your application code to start using the methods listed below. Refer Jaxl Installation, Usage guide and Example apps if you are new to Jaxl. Here is how this can be done at the top of your application code:
// initialize Jaxl instance
$jaxl = new JAXL();
// include MUC XEP
jaxl_require('JAXL0045');
Multi-User Chat available methods:
Below is a detailed list of methods from multi-user room extension:
- joinRoom($jid, $roomJid, $history=0, $type=’seconds’)
- exitRoom($jid, $roomJid)
- kickOccupant($fromJid, $nick, $roomJid, $reason=FALSE, $callback=FALSE)
- getRoomConfig($jid, $roomJid, $callback=FALSE)
- setRoomConfig($jid, $roomJid, $fields, $callback=FALSE)
- grantOwnerPrivileges($fromJid, $toJid, $roomJid, $reason=FALSE, $callback=FALSE)
- revokeOwnerPrivileges($fromJid, $toJid, $roomJid, $reason=FALSE, $callback=FALSE)
- grantAdminPrivileges($fromJid, $toJid, $roomJid, $reason=FALSE, $callback=FALSE)
- removeAdminPrivileges($fromJid, $toJid, $roomJid, $reason=FALSE, $callback=FALSE)
To be continued as more method gets added like banUser, destroyRoom, etc.
var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://abhinavsingh.com/blog/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "oinw";var wordpress_toolbar_hash = "aHR0cDovL2FiaGluYXZzaW5naC5jb20vYmxvZy8yMDEwLzA4L3hlcC0wMDQ1LSVlMiU4MCU5My1tdWx0aS11c2VyLWNoYXQtbXVjLWF2YWlsYWJsZS1tZXRob2RzLWluLWpheGwtMi0wLzx3cHRiPlhFUCAwMDQ1IOKAkyBNdWx0aSBVc2VyIENoYXQgKE1VQykgYXZhaWxhYmxlIG1ldGhvZHMgaW4gSmF4bCAyLjA8d3B0Yj5odHRwOi8vYWJoaW5hdnNpbmdoLmNvbS9ibG9nPHdwdGI%2BQWJoaSYjMDM5O3MgV2VibG9n";
(function() {
var jaxlChat = document.createElement("script");
jaxlChat.type = "text/javascript";
jaxlChat.async = true;
jaxlChat.src = "http://im.jaxl.im/ui/jaxl.php";
(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(jaxlChat);
})();



Recent comments
20 weeks 5 days ago
22 weeks 2 days ago
22 weeks 2 days ago
22 weeks 2 days ago
22 weeks 2 days ago
22 weeks 2 days ago
22 weeks 2 days ago
22 weeks 2 days ago
22 weeks 2 days ago
22 weeks 2 days ago