我安装了openfire作为xmmp converse.js作为服务器和聊天客户端和操作系统Windows 8.I探测openfire与pidgin并工作 . 我无法使用openfire连接converse.js,并且我已经完成了以下操作: - 我在openfire中启用了HTTP绑定
-I修改converse.js的索引:
require(['converse'], function (converse) {
converse.initialize({
auto_list_rooms: false,
auto_subscribe: false,
bosh_service_url: 'http://localhost:7070/http-bind/',
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,
roster_groups: true
});
});
- 我去了防火墙并启用了连接所需的端口(5222,5229,7070和7443)
-I在openfire中插入值为16的xmpp.httpbind.worker.threads和xmpp.client.processing.threads属性
-I修改apache httpd.conf:我启用了LoadModule proxy_http_module和LoadModule proxy_module,我添加了:
ProxyRequests关闭
ProxyPass / http-bind http://127.0.0.1:7070/http-bind/
ProxyPassReverse / http-bind http://127.0.0.1:7070/http-bind/
当我使用openfire的用户登录时,窗口保持连接状态 .
如果有人有关于如何连接openfire converse.js的指南,我会很有帮助 .
谢谢,抱歉我的英语
1 回答
由于您正在运行代理服务器,因此您的bosh_service_url实际上应为'http://localhost/http-bind/' . 我假设您的apache服务器正在标准端口80上运行 . 虽然如果您只是关闭apache,您应该能够使用当前的converse.js配置直接连接到openfire .