首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何连接converse.js和openfire?

如何连接converse.js和openfire?
EN

Stack Overflow用户
提问于 2015-02-11 05:45:38
回答 1查看 2.9K关注 0票数 2

我已经安装了openfire作为xmmp converse.js作为服务器和聊天客户端和操作系统Windows8。我用洋金探测openfire并工作。我不能用openfire连接converse.js,我做了以下事情:-I在openfire中启用了HTTP绑定

代码语言:javascript
复制
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
 });
  });

-I转到防火墙并启用连接所需的端口(5222、5229、7070和7443)

-I在openfire中插入值为16的xmpp.httpbind.worker.threads和xmpp.client.processing.threads属性

-I modify apache httpd.conf:我启用了LoadModule proxy_http_module和LoadModule proxy_module,我添加了:

ProxyRequests关闭

ProxyPass /http-绑定http://127.0.0.1:7070/http-bind/

当我以openfire的用户登录时,窗口保持连接。

请任何人有关于如何连接openfire converse.js me的指南将是有帮助的。

感谢并为我的英语道歉

EN

回答 1

Stack Overflow用户

发布于 2015-02-18 10:32:45

您的bosh_service_url实际上应该是'http://localhost/http-bind/‘,因为您正在运行代理服务器。我假设您的apache服务器运行在标准端口80上。但是,如果您只是关闭了apache,那么您应该能够使用当前的converse.js配置直接连接到openfire。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28442430

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档