Hi,
I am looking to include two features in my app using xmpp. The first one is a one-to-one chat which is almost complete (using strophe) and the second one is real time notifications just the way it works in facebook. I tried to understand the pubsub system in xmpp but dont feel that it will suit this particular problem. Please correct if wrong, it might be due to not getting the concepts correctly. My requirement is this - There will be predefined events that any of the users can fire and when one does, the others who are online should receive a notification for the same. Further i would also want to check if the user has preferred to receive notifications or not before sending them. What I am not getting here is if pubsub is to be used, where and how do the nodes fit. Can I create just one node which every one else will subscribe to ? In that case how will the subscribers publish their events on it without being the node owner ?
The other method I am thinking of is to send message to the jids of all users one by one with a headline type or with an additional payload say <notif/>
for differentiating it from normal messages. Is this method fine taking scalability in to account ?