0
我使用iq方法尝试了strophe.js,并且我可以获取在线用户的数量,但我无法获取在线用户列表来自我的Openfire 3.9.3服务器。XEP-0133:管理员请求获取所有在线用户列表
XMPP请求体:
<iq from='[email protected]/7adf302e' to='[email protected]' type='set' xml:lang='en' xmlns='jabber:client' id='6816:sendIQ'>
<command xmlns='http://jabber.org/protocol/commands' node='http://jabber.org/protocol/admin#get-online-users-list' />
</iq>
XMPP响应
<iq xmlns="jabber:client" type="error" id="6816:sendIQ" from="[email protected]" to="[email protected]/7adf302e">
<command xmlns="http://jabber.org/protocol/commands" node="http://jabber.org/protocol/admin#get-online-users-list"/>
<error code="404" type="cancel">
<item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq>
价: http://xmpp.org/extensions/xep-0133.html#get-online-users-list
通过引用XEP-0050,我可以获得所有管理命令的列表。但是我需要执行XEP-0133中描述的更多命令。有没有办法添加更多的命令? – Pandiarajan 2014-10-09 11:23:19
这取决于你使用的服务器。 – legoscia 2014-10-09 11:25:22
我使用的是Openfire 3.9.3服务器。 – Pandiarajan 2014-10-09 11:47:51