糖果聊天安装失败

时间:2014-03-24 13:43:05

标签: xmpp openfire strophe candy

我安装了开火服务器,http://domain.com/http-bind也没关系。 并且strophe也正常工作。请使用此设置指南进行设置: [糖果设置指南] [1]。

我被困在连接中。

Candy Installation Guide [1]:http://candy-chat.github.io/candy/#setup“糖果设置指南”

  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.

以上是strophe的显示输出,我将我的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();
});

我将index.html复制到candy根目录。 我在firebug控制台中收到了以下消息: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 个答案:

答案 0 :(得分:0)

你需要在init之后调用Candy.Core.attach或Candy.Core.connect并包含参数。

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

答案 1 :(得分:0)

请检查您是否缺少确切的端口,对于我来说,它是domain_name:5280 / bosh

答案 2 :(得分:0)

a plugin for Openfire提供了Candy的集成版本。安装插件后,无需配置即可正常工作。

侧面说明:Candy长时间没有保养。结果,各种重要问题没有得到解决。您最好使用Converse(类似于“ candy”插件,可以通过使用“ inVerse' plugin for Openfire添加到Openfire)