xmpp - Candy chat installation failed -


i have installed open fire server , http://domain.com/http-bind fine. , strophe working fine.tried setup using setup guide: [candy setup guide][1].

i stucked in connecting .

candy installation guide[1]: http://candy-chat.github.io/candy/#setup "candy setup guide"

  strophe connecting.   sent: <body rid='797907051' xmlns='http://jabber.org/protocol/httpbind'       to='example.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'/>  sent: <body rid='797907051' xmlns='http://jabber.org/protocol/httpbind' to='example.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'/> sent: <body rid='797907051' xmlns='http://jabber.org/protocol/httpbind' to='example.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'/> sent: <body rid='797907051' xmlns='http://jabber.org/protocol/httpbind' to='example.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'/> strophe disconnecting. 

above display output of strophe, have changed domian example.com

   $(document).ready(function() {    candy.init('http://example.com/http-bind/', {    core: {    debug: true,    autojoin: ['example@conference.example.com', 'hrirks@conference.example.com']    },    view: { resources: 'res/' }    });     candy.core.connect(); }); 

i copied index.html candy root directory. got following message in firebug console,response

  <html>   <head><title>openfire http binding service</title></head>   <body><font face="arial, helvetica"><b>openfire <a href="http://www.xmpp.org/extensions/xep-0124.html">http binding</a> service</b></font></body>   </html>  , got in post   <body rid='3334381189' xmlns='http://jabber.org/protocol/httpbind' to='example.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'/> 

you need call candy.core.attach or candy.core.connect after init , include parameters.

candy.core.connect(jidorhost, password, nick); 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -