[jdev] Presence probe with multiple JIDs.

Matt Miller linuxwolf at outer-planes.net
Wed Jan 30 16:53:21 UTC 2013


On Jan 30, 2013, at 9:45 AM, Pravin Sinha <pks_chennai at yahoo.com> wrote:

> Hi All,
> 
> Can we have comma separated multiple JIDs in "to" part set and still call it spec compliant?  Suppose, somebody wants to get presence info for a set of users by using a single presence probe packet having multiple JIDs mentioned in "to" . Can this be called a spec compliant way? I couldn't locate any statement which restrict the number of JIDs in "to" part of XMPP packet but still feel this a clumsy approach.
> 

The 'to' (and 'from') attributes on stanza contain a single JID, not multiples separated by some character sequence.  You'll unfortunately need to send a probe for each JID you're interested in, although each JID is almost always a bare JID (localpart at domainpart).  Probing the bare JID should result in a <presence/> stanza for each available full JID (localpart at domainpart/resourcepart), provided the requesting entity is subscribed to the target's presence.


- m&m

Matthew A. Miller
< http://goo.gl/LK55L >

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2305 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20130130/8812986b/attachment.bin>


More information about the JDev mailing list