Skip navigation
2979 Views 4 Replies Latest reply: Dec 9, 2011 1:40 PM by Michael RSS
Jaya Krishna Bronze 10 posts since
Feb 15, 2011
Currently Being Moderated

Nov 24, 2011 1:54 AM

Broadcast an XMPP message using SMACK

Could someone please help me know if there is a way to broadcast an XMPP stanza to a group of users in the same domain using SMACK API?

 

Thanks,

Jaya Krishna

  • rcollier KeyContributor 982 posts since
    Mar 4, 2009
    Currently Being Moderated
    Nov 24, 2011 6:57 AM (in response to Jaya Krishna)
    Broadcast an XMPP message using SMACK

    To my knowledge you have to send a message to each individually.

     

    Other than that you could use a chat room or pubsub, but both would require the other users to effectively register in some way.

      • rcollier KeyContributor 982 posts since
        Mar 4, 2009
        Currently Being Moderated
        Nov 29, 2011 7:10 AM (in response to Jaya Krishna)
        Broadcast an XMPP message using SMACK

        This matches with the usage of pubsub, but it will require the users to subscribe to the node.

      • Michael Silver 93 posts since
        Jul 22, 2005
        Currently Being Moderated
        Dec 9, 2011 1:40 PM (in response to Jaya Krishna)
        Broadcast an XMPP message using SMACK

        Have you considered using the broadcast plugin? We have used it in combination with a 'headline' message which is sent to all@broadcast.domain.

         

        see RFC 6121:

        headline -- The message provides an alert, a notification, or

              other transient information to which no reply is expected (e.g.,

              news headlines, sports updates, near-real-time market data, or

              syndicated content).  Because no reply to the message is expected,

              typically a receiving client will present a message of type

              "headline" in an interface that appropriately differentiates the

              message from standalone messages, chat messages, and groupchat

              messages (e.g., by not providing the recipient with the ability to

              reply).  If the 'to' address is the bare JID, the receiving server

              SHOULD deliver the message to all of the recipient's available

              resources with non-negative presence priority and MUST deliver the

              message to at least one of those resources; if the 'to' address is

              a full JID and there is a matching resource, the server MUST

              deliver the message to that resource; otherwise the server MUST

              either silently ignore the message or return an error (see

              Section 8).

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points