Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | 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 Display Modes
  #1 (permalink)  
Old September 25th, 2011, 04:50 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Openfire and xmpp:restart

I had just purchased your book and getting into the examples. I'm getting nothing back from Openfire after sending xmpp:restart='true'. Apparently this is a known issue: http://community.igniterealtime.org/thread/26972

Is there a workaround for this, or do I have to use another XMPP server (difficult for us as our openfire service has been running for over 3 years now without failure and is otherwise excellent for our needs.)

Output:

Code:
Strophe is connecting.
SENT: <body rid='637425159' xmlns='http://jabber.org/protocol/httpbind' to='myserver.com' xml:lang='en' wait='60' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>

RECV: <body xmlns='http://jabber.org/protocol/httpbind' xmlns:stream='http://etherx.jabber.org/streams' authid='cdae8eba' sid='cdae8eba' secure='true' requests='2' inactivity='30' polling='5' wait='60' ver='1.6'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features></body>
on connect

SENT: <body rid='637425160' xmlns='http://jabber.org/protocol/httpbind' sid='cdae8eba'><auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/></body>

RECV: <body xmlns='http://jabber.org/protocol/httpbind'><challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cmVhbG09InNvdXJjZWVsZW1lbnRzLmNvbSIsbm9uY2U9Ing1UTZCb2ZLRzVNcm9EN2wzT0tnaVcra0dXTTZKVTRhMXpKNVI2TjAiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge></body>

SENT: <body rid='637425161' xmlns='http://jabber.org/protocol/httpbind' sid='cdae8eba'><response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dXNlcm5hbWU9InJlZGJpcmQiLHJlYWxtPSJzb3VyY2VlbGVtZW50cy5jb20iLG5vbmNlPSJ4NVE2Qm9mS0c1TXJvRDdsM09LZ2lXK2tHV002SlU0YTF6SjVSNk4wIixjbm9uY2U9ImQ0MWQ4Y2Q5OGYwMGIyMDRlOTgwMDk5OGVjZjg0MjdlIixuYz0iMDAwMDAwMDEiLHFvcD0iYXV0aCIsZGlnZXN0LXVyaT0ieG1wcC9zb3VyY2VlbGVtZW50cy5jb20iLHJlc3BvbnNlPSI5MTM0MGI0ZDZiNzIwYTE1ZTEwNGVmZjRiZmM0MWI2YSIsY2hhcnNldD0idXRmLTgi</response></body>

RECV: <body xmlns='http://jabber.org/protocol/httpbind'><success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cnNwYXV0aD03OTY2NTg4OTAyYjkzZjBiMGVkZDMwZTA4ODAzMGViMg==</success></body>

SENT: <body rid='637425162' xmlns='http://jabber.org/protocol/httpbind' sid='cdae8eba' to='myserver.com' xml:lang='en' xmpp:restart='true' xmlns:xmpp='urn:xmpp:xbosh'/>

RECV: <body xmlns='http://jabber.org/protocol/httpbind'/>

Last edited by sarahgt; September 25th, 2011 at 04:52 PM.
  #2 (permalink)  
Old February 5th, 2012, 08:10 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

I believe this got fixed in later version of Strophe. Grab the latest code from http://github.com/metajack/strophejs
 


Thread Tools
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
File transfer using jingle in XMPP Purushotham BOOK: Professional XMPP Programming with JavaScript and jQuery 2 February 17th, 2015 07:25 AM
BOSH, Strophe, and Openfire iowadeifan BOOK: Professional XMPP Programming with JavaScript and jQuery 11 March 31st, 2014 04:08 PM
Establishing XMPP connection badinar BOOK: Professional XMPP Programming with JavaScript and jQuery 0 January 20th, 2011 06:27 PM
XMPP server authentication badinar BOOK: Professional XMPP Programming with JavaScript and jQuery 1 January 17th, 2011 01:50 PM
What about NoSQL over xmpp? flossy BOOK: Professional XMPP Programming with JavaScript and jQuery 2 June 28th, 2010 03:22 PM



All times are GMT -4. The time now is 03:57 PM.


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