ANNOUNCEMENT - The community will be down for maintenace this Thursday August 13 from 12:00 AM PT to 02:00 AM PT. As a precaution save your work.
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Please note that Remote Expert Mobile announced end-of-life and support will end on February 28, 2022.
1236
Views
2
Helpful
5
Replies
Highlighted
Cisco Employee

MUC Jabber Sample Code Available?

Would it be possible to get some sample code on doing a multi-user chat?

Everyone's tags (5)
5 REPLIES 5
Highlighted
Contributor

Re: MUC Jabber Sample Code Available?

Hi John,

Have you checked out the sample code "mucexample.html"?

Regards,

Howard

Highlighted
Beginner

Re: MUC Jabber Sample Code Available?

mucexample.html is in the CAXL SDK under doc/examples

You can also find the mucexample.html online here:

https://developer.cisco.com/media/AJAX-XMPP-Library-Index/examples/mucexample.html

Here's the link from the library index:

https://developer.cisco.com/site/collaboration/jabber/websdk/develop-and-test/im-and-presence/xmpp-library-reference/ind…

Highlighted
Cisco Employee

Re: MUC Jabber Sample Code Available?

Here are two samples (attached) updated to include jQueryUI.  npMucDemo works with the sandbox.  npjQueryUiDemoWebex works with webex. 

Highlighted

Re: MUC Jabber Sample Code Available?

Nicholas,

This is great.  Anyone have an example an XMPP Client on 5222?

Thanks,

Mike

Highlighted
Cisco Employee

Re: MUC Jabber Sample Code Available?

Hi Mike,

Cisco doesn't have an API for that, only CAXL, which is web-based and uses BOSH (7335), not 5222. 

You can use a variety of open source APIs that should work.  I've played with Smack (Java), and I found it very simple to use.

If you want to see how others do it, there are at least two open source Jabber clients that use XMPP and 5222.  Pidgin is one, Jitsi is another.  You can download the source for each and have a look.

Thanks,

Nicholas