How to keep the groupchat room (MUC) existing all the time even if disconnected from the XMPP server?

谁都会走 提交于 2019-12-03 02:47:54
  1. The spec says "must be able to destroy", not "has to destroy". Persistent MUCs do not get automatically destroyed when the last user leaves the MUC

  2. I depends on the implementation of the MUC component. If it stores the persistent MUCs on persistent storage, then it's able to reload all persistent MUCs on restart. IIRC the MUC component of Openfire does so.

  3. Make it persistent.

You need to update the java code in openfire so that groups will not be delete if user goes offline.You need to update the code against MUC in openfire

I suggest you have a look at the new XMPP feature of MUCLight.

This have multiple functionalities not all but most like whatsapp and to what you are expecting.

The persistence is handled in this MUCLight group type.

XMPP over MongooseIM Server : https://mongooseim.readthedocs.io/en/latest/open-extensions/muc_light/

XMPP over Ejabberd Server : https://www.ejabberd.im/aggregator/categories/2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!