java - 如何在 Openfire 上接收消息传递回执?

标签 java xmpp server openfire jabberd2

如何在 Openfire 服务器上接收消息送达回执?

我希望在以下状态下收到确认:

  1. Openfire 服务器收到消息时
  2. 当receiver客户端收到消息时
  3. 当接收者已阅读消息时。

简而言之,我想实现类似于 Whatsapp 的功能,例如 PENDING、SINGLE TICK、DOUBLE TICK、BLUE DOUBLE TICK。

我知道,XMPP 确实支持此功能。 [ XEP-0184 ]

经过多方查找,得知Openfire不支持XEP-0184。 问题OF-434已被 Openfire 社区关闭并标记为不会修复

我还能如何实现这一目标?我不想迁移到另一台服务器!

在 OPENFIRE 上实现消息传递回执的替代解决方案是什么?

最佳答案

如果您仔细阅读了您提到的 Openfire 问题,您可能会注意到 the last comment of the issue gives the reason it was closed as "Won't Fix" :

XEP-0184 has nothing to do with the server.

It is purely a client to client protocol and is well documented as to what that means with regards to not receiving receipts for message due to issues that may arise due to the server. There is nothing for the server to implement with this specification so I am closing it.

此外,XEP-184 仅描述了交付 收据的机制。它指定当服务器收到(“确认收到”)消息或用户已阅读消息时不通知。

服务器确认传入节可以使用 XEP-198 流管理完成,更详细的收据可以使用 XEP-333 聊天标记完成。只有XEP-198需要服务器支持,另外两个XEP-184和XEP-333是纯客户端XEP。

关于java - 如何在 Openfire 上接收消息传递回执?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27820835/

相关文章:

android - 使用 ejabberd 将参与者添加到聊天室

android - 是否可以在 Tomcat 服务器中安装 XMPP 模块?

java - 不使用 Firebase 云消息传递或任何其他类似服务的 Android 推送通知

Java Kryonet 客户端断开连接

java - 对字符串数组和 int 数组进行排序

java - 使用 Java - MongoDB 在服务器上存储函数

java - Hibernate session.createSQLQuery

java - 删除 AppEngine DevServer 中使用的 Blob

xml - 如何有效地为基于 XML 的文本协议(protocol)定义传输结束?

javascript - 在单个包含服务器中隔离 Node JS "apps"