Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/421.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在openfire中连接converse.js和fastpath_Javascript_Openfire_Strophe_Converse.js - Fatal编程技术网

Javascript 在openfire中连接converse.js和fastpath

Javascript 在openfire中连接converse.js和fastpath,javascript,openfire,strophe,converse.js,Javascript,Openfire,Strophe,Converse.js,我已经用fastpath插件安装了openfire。 使用反向插件,我可以将用户重定向到工作组中的相应队列 现在,我正在尝试向具有相同功能的页面添加匡威.js。我可以查看其他联系人并与他们聊天,但当fastpath试图让我参加与相应代理的会议(基于问题)时,我会出错 这是我的js: converse.initialize({ bosh_service_url: 'http://chat.domain.com:7070/http-bind/',

我已经用fastpath插件安装了openfire。 使用反向插件,我可以将用户重定向到工作组中的相应队列

现在,我正在尝试向具有相同功能的页面添加匡威.js。我可以查看其他联系人并与他们聊天,但当fastpath试图让我参加与相应代理的会议(基于问题)时,我会出错

这是我的js:

  converse.initialize({
            bosh_service_url: 'http://chat.domain.com:7070/http-bind/',
            show_controlbox_by_default: true,
            allow_muc_invitations: true,
            keepalive: true,
            debug: true,
            allow_non_roster_messaging: true,
            allow_contact_requests: true,
            auto_join_on_invite: true,
            roster_groups: true,
            jid: 'user@chat.domain.com',
            password: 'password',
            auto_login: true,
            auto_subscribe: true
           }); 
关于:

x_el为空,尽管消息包含以下内容:

<message xmlns="jabber:client" 
from="pjiw6d129@conference.chat.domain.com" 
to="user@chat.domain.com/converse.js-60521038">
<workgroup xmlns="http://jabber.org/protocol/workgroup" jid="test@workgroup.chat.domain.com"/>
<session xmlns="http://jivesoftware.com/protocol/workgroup" id="pjiw6d129"/>
<x xmlns="http://jabber.org/protocol/muc#user">
    <invite from="test@workgroup.chat.domain.com">
        <reason>Please join me for a chat.</reason>
    </invite>
</x>
<x xmlns="jabber:x:conference" jid="pjiw6d129@conference.chat.domain.com"/>


在匡威.js中,Openfire的FastPath是XMPP扩展的实现。据我所知,converse.js(版本3.3.2,这是我写这篇文章时的最新版本)不支持此扩展。

我只是想将converse用作XMPP客户端。它不需要支持XEP-0142。
<message xmlns="jabber:client" 
from="pjiw6d129@conference.chat.domain.com" 
to="user@chat.domain.com/converse.js-60521038">
<workgroup xmlns="http://jabber.org/protocol/workgroup" jid="test@workgroup.chat.domain.com"/>
<session xmlns="http://jivesoftware.com/protocol/workgroup" id="pjiw6d129"/>
<x xmlns="http://jabber.org/protocol/muc#user">
    <invite from="test@workgroup.chat.domain.com">
        <reason>Please join me for a chat.</reason>
    </invite>
</x>
<x xmlns="jabber:x:conference" jid="pjiw6d129@conference.chat.domain.com"/>
room_jid = x_el.getAttribute('jid'),
reason = x_el.getAttribute('reason');}
room_jid = message.getElementsByTagName('x')[1].getAttribute('jid'),
reason = message.getElementsByTagName('x')[0].getAttribute('reason');