Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1082405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:17:32+00:00 2026-05-16T22:17:32+00:00

I am looking to include two features in my app using xmpp. The first

  • 0

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 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:17:33+00:00Added an answer on May 16, 2026 at 10:17 pm

    Pubsub would be an appropriate solution for this case. It handles all your requirements from what I can see. You will need to set up a node for each event type, if you expect to have users subscribe differently for each message type (alternatively filters can be used on a single node, but I think multiple nodes are easier). The node owner can allow anyone to publish to a node, so that is not an issue.

    PEP was mentioned, but is not the right solution if you want to publish to users that are not in your roster.

    Pubsub will also allow you to define any content type you want for messages or none at all if the simple act of the message transmission is informative enough.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to run two sites off one Sitecore install. The first site will
A client is looking for a custom web application, which will eventually include lots
I'm looking to compare two sets and display the missing elements in second set
We have two sets, A and B. Each one of these sets include strings.
I'm looking at a module X which contains two modules called InstanceMethods and ClassMethods
I was looking to find a way to use include statement using a fifo
Looking at the profiler I see a few differences. The second query which uses
I am looking to include a reference to a non-elisp file (a small Python
I'm looking to include a Windows .exe in my gem and call on that
I was just looking at this example from Deitel : #include <stdio.h> struct card

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.