powered by Jive Software

Pub-Sub on User Joins MUC room

I want to available Number of Members in Group to all users. I thought to achieve this by Pub-Sub. I want a Publish values when a User Joins the Group and Leaves the Group. How can I capture that on Server?

I suggest that you attempt to tackle this by writing a plugin for Openfire that uses an event listener to capture the events that you’re interested in, and then performs an action op Pubsub (modify the value of the pubsub node where you’re keeping track of things).

When you’re talking about groups (collections of users) then you can use org.jivesoftware.openfire.event.GroupEventListener. If instead you’re interested in groupchats (multi-user chats), then you should go with org.jivesoftware.openfire.muc.MUCEventListener

1 Like