如何在 ejabberd 的聊天室中获取离线用户
How to get offline users in a chat room in ejabberd
我们在 Ubuntu 服务器上设置了 ejabberd,我们想要获取房间中的所有离线用户以发送推送通知。
我们如何从数据库中获取它们?
它的配置是什么?
根据 XEP-0045 多用户聊天中的定义,XMPP 中的聊天室是基于状态的。我的意思是 join a room you send a presence packet to the room. When you disconnect, the server sends a presence unavailable to the room so that you leave it。您也可以发送无法离开的在线状态 "manually",但仍保持联系。
根据定义,XMPP聊天室中没有离线用户。
我们在 Ubuntu 服务器上设置了 ejabberd,我们想要获取房间中的所有离线用户以发送推送通知。
我们如何从数据库中获取它们?
它的配置是什么?
根据 XEP-0045 多用户聊天中的定义,XMPP 中的聊天室是基于状态的。我的意思是 join a room you send a presence packet to the room. When you disconnect, the server sends a presence unavailable to the room so that you leave it。您也可以发送无法离开的在线状态 "manually",但仍保持联系。
根据定义,XMPP聊天室中没有离线用户。