Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
  #2 (permalink)  
Old April 18th, 2011, 07:39 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:02 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.