Strophe MUC example

mahen3d picture mahen3d · Jan 31, 2012 · Viewed 8k times · Source

Does anyone have an example code for a join,changenick, ...etc functions calls in Strophe muc extension ?

I tried to do this myself not sure how do i call the extensions functions, and add the plugin to the js, is it adding

Answer

Michael Weibel picture Michael Weibel · Feb 2, 2012

You need to include the strophe.muc.js in our html file and after you established a Strophe connection, you can call the muc methods with conn.muc.foobarMethod() where conn is the established Strophe connection and foobarMethod is the method you'd like to call.

Instead of trying to build everything on your own (and from your question I assume that you don't have the relevant know-how), try an already built js xmpp client like Candy which is also built upon Strophe.js.