Wrox Programmer Forums
|
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 20th, 2011, 11:29 AM
Registered User
 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default MUC Issues

Hi All,
I'm having some trouble with the groupie application in chapter 8. When I send the initial presence stanza to conference.jabber.org, I only get back a 201 code and no 110. I tried debugging this using peek and here is the response that I got:

Initial Presence:
<presence from='jpeterson7755@jabber.org/7d6f0ebdbebcde30'
to='jpeters4d4@conference.jabber.org/JP'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>

Response:
<presence xmlns='jabber:client'
to='jpeterson7755@jabber.org/7d6f0ebdbebcde30'
from='jpeters4d4@conference.jabber.org/JP'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item affiliation='owner'
role='moderator'/>
<status code='201'/>
</x>
</presence>

I downloaded MUC client app to see if the MUC was created on conference.jabber.org, but it doesn't seem to exist.

I think what's happening here is I'm failing to properly join the MUC for some reason. The 201 comes back telling me the room has been created, but there is no 110 telling me that I've joined the room. Since the room has no occupants, maybe it is getting destroyed?

Any help here would be really appreciated. This is a big barrier to progress for me.

Thanks,
John
 
Old April 18th, 2011, 07:39 PM
Wrox Author
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

My guess is that the MUC implementation sends 201 instead of 110. The examples in the spec show that it should send both, but I suppose it could be considered implicit 110 to send the 201 to the creator.

You can just add that extra case and it should work fine.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Serious Issues silverx10 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 12 February 5th, 2010 02:29 AM
connection string issues, web.config file issues kaliaparijat ASP.NET 2.0 Professional 1 June 12th, 2008 08:07 AM
IE Issues iPagan BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 April 1st, 2007 04:11 AM
Still Having Issues slas7713 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 9 October 27th, 2006 02:59 PM
For-each issues hiskeyd XSLT 1 February 27th, 2006 08:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.