문제

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

도움이 되었습니까?

해결책

Candy is a full blown MUC client based on Strophe. The code is excellent and easy to read. I suggest to download it and study the code: http://candy-chat.github.com/candy/

Alex

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top