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 September 25th, 2011, 03:50 PM
Registered User
 
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 03:52 PM..
 
Old February 5th, 2012, 08:10 PM
Wrox Author
 
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





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 03: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 02:22 PM





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