如何在 Openfire 服务器上接收消息送达回执?
我希望在以下状态下收到确认:
- Openfire 服务器收到消息时
- 当receiver客户端收到消息时
- 当接收者已阅读消息时。
简而言之,我想实现类似于 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/