我已经使用 xabber-web 一个月了,我试图通过 bosh 将它连接到 mongoosim v.2.0,但结果是无法获取历史聊天 (mam)。奇怪的是我可以在浏览器的调试和开发模式下看到消息节。在沮丧和困惑的状态下,我尝试再次将其连接到另一台服务器 ejabberd,并且完全成功。消息正在检索,最近有一次聊天,还有各种功能,但我想要的是连接到 mongoose。mongooseim 中是否有针对 mod_mam 的任何特定配置,xabber 支持 mam:1。
也许这会有所帮助,来自不同服务器的消息节:
ejabberd 结果:
<message to="admin3@localhost/xabber-web-9a95517d-d3cc-451e" from="admin3@localhost" xmlns="jabber:client">
<result id="1508851147555271" queryid="3efd1fe7-e97f-4b92-b256-8d3e755eee28" xmlns="urn:xmpp:mam:1">
<forwarded xmlns="urn:xmpp:forward:0">
<message id="2a66dda9-5440-490a-8f1e-7fb866a14082" xml:lang="en" to="admin10@localhost" from="admin3@localhost/64881300220952593792741" type="chat" xmlns="jabber:client">
<archived id="1508851147555271" by="admin3@localhost" xmlns="urn:xmpp:mam:tmp"></archived>
<stanza-id id="1508851147555271" by="admin3@localhost" xmlns="urn:xmpp:sid:0"></stanza-id>
<active xmlns="http://jabber.org/protocol/chatstates"></active>
<body>asf</body>
</message>
<delay from="localhost" stamp="2017-10-24T13:19:07.555271Z" xmlns="urn:xmpp:delay"></delay>
</forwarded>
</result>
</message>
猫鼬结果
<message id="e579cbc2-dd63-4bcc-8078-665e720bad6d" xmlns="jabber:client" from="admin3@localhost" to="admin3@localhost/xabber-web-17bcf9fc-8424-4688">
<result id="ANFEVKG11B81" queryid="d2155cbe-1137-4532-bd64-2832ba97885d" xmlns="urn:xmpp:mam:1">
<forwarded xmlns="urn:xmpp:forward:0">
<delay xmlns="urn:xmpp:delay" from="admin3@localhost/xabber-web-eaa21c41-a11c-4399" stamp="2017-11-14T10:38:33Z"></delay>
<message id="93470005-3c10-4eca-a4a8-9ed417d58969" from="admin3@localhost/xabber-web-eaa21c41-a11c-4399" xmlns="jabber:client" xml:lang="en" to="admin2@localhost" type="chat">
<body>fsa</body>
<markable xmlns="urn:xmpp:chat-markers:0"></markable>
</message>
</forwarded>
</result>
</message>