[jdev] Presence probe with multiple JIDs.

Pravin Sinha pks_chennai at yahoo.com
Wed Jan 30 17:26:35 UTC 2013

Thanks, Matt.

 From: Matt Miller <linuxwolf at outer-planes.net>
To: Jabber/XMPP software development list <jdev at jabber.org> 
Sent: Wednesday, 30 January 2013 10:23 PM
Subject: Re: [jdev] Presence probe with multiple JIDs.

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 >

JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: JDev-unsubscribe at jabber.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20130131/a5208a3b/attachment.html>

More information about the JDev mailing list