gpt4 book ai didi

openfire - 查询 openfire 消息存档

转载 作者:行者123 更新时间:2023-12-04 05:18:20 25 4
gpt4 key购买 nike

我在玩 strophe 和 Openfire 3.7.1(带有用户服务和监控插件)。

我读过 http://xmpp.org/extensions/xep-0136.html (7.2 检索集合)
我可以检索存档的消息。我已经在我的 openfire 服务器上安装了 monitoring.jar 插件并启用了归档。我已经读到我需要打开存档来查询存档,但是这个功能已经在监控插件中了。

引用监控插件自述文件:
“监控插件为 Openfire 添加了对聊天存档和服务器统计的支持。它支持生成各种服务器统计报告,以及管理、查看和报告聊天日志。”

我可以在监控 GUI 中看到存档的消息,但我想在我使用 strophe.js 库制作的客户端中检索它。我不知道该怎么做。
在 XEP-0136 示例中,他们创建了这样的 IQ:

<iq type='get' xmlns='jabber:client'><retrieve xmlns='urn:xmpp:archive' with='test@localhost'>set</retrieve></iq> { nodeTree=iq, node=retrieve}

然而,openfire 似乎没有回复。我不确定我是否应该使用开放存档插件,因为如果我检查我的监控选项卡,文件已经在那里了。此外,大多数关于开放存档的帖子都是 2 年前的,所以我不确定它是否仍然受支持。请指教。

此致,

史蒂文森李

最佳答案

应该是这样的

<iq type='get' id='juliet1'>
<list xmlns='urn:xmpp:archive'
with='juliet@capulet.com/chamber'>
</list>
</iq>


<iq type='get' id='page1'>
<retrieve xmlns='urn:xmpp:archive'
with='juliet@capulet.com/chamber>
<set xmlns='http://jabber.org/protocol/rsm'>
<max>100</max>
</set>
</retrieve>
</iq>

或者你做了别的什么

关于openfire - 查询 openfire 消息存档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8225462/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com