I want to include two functions in my application using xmpp. The first is an individual chat, which is almost complete (using the stanza), and the second is in real time, only the way it works on facebook. I tried to understand the pubsub system in xmpp, but I don’t feel that this is suitable for this particular problem. Please correct if this is incorrect, possibly due to a misunderstanding of the concepts. My requirement - There will be predefined events that one of the users may have, and when this is done, others who are online should receive a notification about this. In addition, I would also like to check if the user prefers to receive notifications or not before sending them. What I don't get here is using pubsub, where and how nodes fit. Can I create only one node,which everyone else will subscribe to? In this case, how will subscribers publish their events on it without being the owner of the node?
Another method that I think of is to send a message to the jids of all users one by one with a header type or with an additional payload, say <notif/>, to distinguish it from regular messages. Is this method acceptable for scaling?
source
share