连接throw stropes.js时没有收到Openfire Xmpp的通信

时间:2014-07-03 07:08:37

标签: openfire strophe bosh punjab

我正在尝试创建一个客户端聊天。我能够将旁遮普服务器的日志视为发送 - 接收。但从未显示为 Strophes Connected 做了以下设置

1)设置Xmpp服务器

wget -O openfire.deb http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3.9.3_all.deb 并完成了如上所述的设置  https://www.digitalocean.com/community/tutorials/how-to-install-openfire-xmpp-server-on-a-debian-or-ubuntu-vps  现在可以通过***** xmppserver.com

访问openfire

2)在同一台服务器上设置Punjab Bosh Server 从github下载

https://github.com/twonds/punjab/blob/master/INSTALL.txt

并开始通过twistd -ny punjab.tac

运行 <{1>}中的

添加为

etc/hosts

3)最后下载了最新的strophes.js并编辑了basic.js

127.0.0.1 *****xmppserver.com

输出显示为连接,永远不会连接!!

var BOSH_SERVICE = 'http://*****xmppserver.com:5280/http-bind';

enter image description here

1 个答案:

答案 0 :(得分:0)

您可以尝试使用Openfire内置的BOSH http连接管理器。在Openfire的管理面板上启用它:
 服务器&gt;服务器设置&gt; HTTP绑定,那么BOSH URL应该像

var BOSH_SERVICE = 'http://*****xmppserver.com:7070/http-bind/';

/放在/http-bind的末尾对于Strophe来说至关重要。

相关问题