Thanks, Matt.
________________________________
From: Matt Miller <[email protected]>
To: Jabber/XMPP software development list <[email protected]>
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 <[email protected]> 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@domainpart). Probing the bare JID should result in a
<presence/> stanza for each available full JID
(localpart@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: [email protected]
_______________________________________________
_______________________________________________
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________