Apache ConverseJS和OpenFire

Apache ConverseJS和OpenFire,apache,xmpp,openfire,ejabberd,converse.js,Apache,Xmpp,Openfire,Ejabberd,Converse.js,我正在尝试将converesejs示例连接到安装在本地主机上的openfire服务器,但无法建立连接(我不知道为什么)。但是,我可以使用Psi连接到openfire服务器。我认为问题在于http绑定 在conversejs示例中,有这样的代码应该由我编辑 <script> require(['converse'], function (converse) { converse.initialize({ allow_otr: true, auto

我正在尝试将converesejs示例连接到安装在本地主机上的openfire服务器,但无法建立连接(我不知道为什么)。但是,我可以使用Psi连接到openfire服务器。我认为问题在于http绑定

在conversejs示例中,有这样的代码应该由我编辑

<script>
require(['converse'], function (converse) {
    converse.initialize({
        allow_otr: true,
        auto_list_rooms: false,
        auto_subscribe: false,
        bosh_service_url: 'http://localhost:7070/http-bind', // my connection manager of an openfire 
        debug: true ,
        hide_muc_server: false,
        i18n: locales['en'], // Refer to ./locale/locales.js to see which locales are supported
        prebind: false,
        show_controlbox_by_default: true,
        xhr_user_search: false,
    });
});</script>
但这没用。当我尝试使用conversejs示例页面登录到服务器时,它保持“连接”状态


谢谢你的帮助

您需要配置OpenFire以支持BOSH(同步HTTP上的双向流)


登录到管理控制台,然后转到服务器->服务器设置->HTTP绑定。

谢谢您的回答。我又检查了一遍。问题是我使用了:bosh_service_url:“”,而不是bosh_service_url:“”,我试图让converseJS在服务器上自己使用openfire的应用程序上工作。你感觉怎么样?我应该继续吗?
ProxyRequests Off
ProxyPass /http-bind http://127.0.0.1:7070/http-bind/
ProxyPassReverse /http-bind http://127.0.0.1:7070/http-bind/