Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Avatar
owen #1
Member since Nov 2006 · 21 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Subject: How do I broadcast message to group?  (VB.Net)
Can someone please give an example of how to broadcast a message to a group using agsXMPP in VB.Net?   For example send "hello guys" to the users grouped under "Sales".

Please can someone reply with a chunk of example code?  Thanks!

Also, for efficiency, how does this work?  Say for example there is a group of 30 users, can I send just 1 message (to the group) instead of 30 individual messages (to the users)?

Thanks
Owen
Avatar
Alex #2
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello Owen,

there is nothing in XMPP which does this automatically for you.
This means that you have to send the same message to each recipient. Normally you have the roster in you app in a collection. So write a function which loops thru a rostergroup and creates the messages.

But there are also some XMPP extensions avaialable which could do that.
Maye Pubsub is what you are looking for:
http://www.xmpp.org/extensions/xep-0060.html

or Extended Stanza Addressing:
http://www.xmpp.org/extensions/xep-0033.html

Alex
Alexander Gnauck
AG-Software
Avatar
sthompson609 #3
Member since Mar 2007 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Extended Stanza Addressing
How would one use Extended Stanza Addressing with agsxmpp?
Avatar
Alex #4
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
extended stanza addressing is not implemented in agsXMPP (yet).
If you need this code we can add this for you via the professional services we offer.  If you are interested, please contact the AG-Software Sales at sales@ag-software.de

Alex
Alexander Gnauck
AG-Software
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP SDK Support RSS