Mrop Strophe example

Does anyone have some sample code for connection calls, channel, ... etc. in the Strophe muc extension?

I tried to do it myself, not sure how to call extension functions and add a plugin in js, does it add

+4
source share
2 answers

Candy is a fully featured MUC client based on Strophe. The code is great and easy to read. I suggest downloading it and learning the code: http://candy-chat.github.com/candy/

Alex

+7
source

You need to include strophe.muc.js in our html file, and after you set up the Strophe connection, you can call the muc methods with conn.muc.foobarMethod (), where conn is the installed Strophe connection and foobarMethod is the method you want to call.

Instead of trying to build everything yourself (and from your question, I assume that you do not have the appropriate know-how), try the already built js xmpp client, for example Candy , which is also built on Strophe.js.

+8
source

Source: https://habr.com/ru/post/1393894/


All Articles