且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无需邀请即可加入XMPP MUC会议室-ejabberd

更新时间:2023-12-05 20:05:04

使用 pubsub 功能和相对的MultiUserChat 书签的***方法. 如果您有特殊需求无法满足的需求,则可以开发自定义书签管理器.

Best way it's to use pubsub feature and relative MultiUserChat bookmarks. You can develop a custom bookmarks manager if you need something declined on your special needs.

您需要执行以下步骤吗?

Do you need the following steps:

1)创建持久性群组聊天时,请在首次加入后在群组聊天中添加书签. (=>保存数据库组聊天名称和密码)

1) When create a persistent groupchat, bookmark the groupchat after first join. (=> save on db groupchat name and password)

2)接收邀请时,在第一次加入后在群组聊天中添加书签(=>保存数据库群组聊天的名称和密码)

2) When recive an invite, bookmark the groupchat after the first join (=> save on db groupchat name and password)

3)在登录/重新连接时检索书签列表

3) On login / reconnect retrive bookmarks list

4)Foreach书签->加入(并分配侦听器等)

4) Foreach bookmark -> join (and assign listeners and so on)

5)提供一个删除书签条件(基于时间戳,会话,显式请求等).

5) Provide a delete bookmark condition (based on timestamp, session, explicit request and so on).

官方规范