【发布时间】:2023-03-10 21:29:01
【问题描述】:
我正在尝试使用带有 openfire 服务器的 ruby xmpp4r 库来获取 openfire 多用户群聊历史记录。我能够构建请求,但我没有得到服务器回复。 下面是发现请求
iqr = Iq.new(:get,"example.com")
iqr.add_namespace("http://jabber.org/protocol/disco#info")
client.send(iqr)
这是被框定的请求
<iq to='example.com' type='get' xmlns='http://jabber.org/protocol/disco#info'/>
但我没有收到服务器回复。我关注了 XEP-0160 和 XEP-0013。
我在这里错过了什么?
openfire 是否提供房间聊天记录?有相应的 api 吗?
非常感谢任何帮助。而且我不太了解 openfire,因此非常感谢有关它的任何信息。
【问题讨论】:
标签: ruby-on-rails ruby xmpp openfire xmpp4r