Search code examples
quickblox

how to create room in QuickBlox using WEB SDK


I want to implement group chat using QuickBlox(web). Normally for a group chat we will login to QuickBlox, go to chat and will create a group.Instead of this is there any possibilities to create rooms programmatically by user? if possible please help me how can I achieve.

Thanks in advance.


Solution

  • Now WebSDK doesn't support a wrraper around XMPP API, so you should include additional XMPP JS library for that.

    Strophe.js (http://strophe.im/strophejs/)

    and its Strophe.muc plugin (https://github.com/QuickBlox/sample-chat-xmpp-web/blob/master/js/libs/strophe.muc.js).

    Please use these methods for creating the chat room:

    1) muc.createInstantRoom

    2) muc.configure

    3) muc.saveConfiguration