Candy chat installation failed

1.1k Views Asked by At

I have installed open fire server and http://domain.com/http-bind is also fine. And strophe is also working fine.Tried to setup using this setup guide: [Candy Setup Guide][1].

I am stucked in Connecting .

Candy Installation Guide[1]: http://candy-chat.github.io/candy/#setup "Candy Setup Guide"

  Strophe is 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 is disconnecting.

Above is the display output of strophe, I have changed my domian to example.com

   $(document).ready(function() {
   Candy.init('http://example.com/http-bind/', {
   core: {
   debug: true,
   autojoin: ['[email protected]', '[email protected]']
   },
   view: { resources: 'res/' }
   });

   Candy.Core.connect();
});

I copied index.html to candy root directory. I 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>
 And got this 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'/>
3

There are 3 best solutions below

0
On

There's a plugin for Openfire that supplies an integrated version of Candy. There's nothing that you need to configure for that to work, after you installed the plugin.

Side note: Candy has gone unmaintained for a long while. As a result, various important issues are not addressed. You're probably better of using Converse (which similar to the 'candy' plugin, can be added to Openfire by using the 'inVerse' plugin for Openfire)

0
On

please check if u r missing the exact port , for my case it is domain_name:5280/bosh

12
On

You need to call Candy.Core.attach or Candy.Core.connect after init AND include the parameters.

Candy.Core.connect(jidOrHost, password, nick);