[Standards] Proposed XMPP Extension: Service Discovery Notifications

Peter Saint-Andre stpeter at stpeter.im
Fri Jan 4 15:30:57 CST 2008


Joe Hildebrand wrote:
> 
> On Jan 3, 2008, at 10:02 PM, XMPP Extensions Editor wrote:
> 
>> Title: Service Discovery Notifications
>>
>> Abstract: This document specifies a way to request and receive 
>> notifications regarding service discovery items.
>>
>> URL: http://www.xmpp.org/extensions/inbox/disco-notifications.html
> 
> If we stay with the explicit approach, I think I would prefer:
> 
> <iq type='get'
>     from='bill at shakespeare.lit/globe'
>     to='chat.shakespeare.lit'
>     id='items1'>
>   <query xmlns='http://jabber.org/protocol/disco#items'>
>     <subscribe xmlns='http://jabber.org/protocol/pubsub'/>
>   </query>
> </iq>
> 
> Where the JID was implicit from the from address, and the node was 
> implicit from the disco query node.  As such, the JID in the 
> subscription tag and (potentially) the notification seem superfluous.

Agreed. You want to send to full JID, not bare JID.

> I think the subscription tag MUST include a subid, and we should specify 
> the unsubscribe case, as well, with the example using the subid.

Right.

> The node in the notification should be the node of the disco request, 
> not disco#items.

I assume that most of the time the node will be empty (e.g., you're 
temporarily subscribing to "conference.jabber.org" and not any special 
node there), though naturally you could subscribe to a specific node if 
appropriate.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7338 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.jabber.org/pipermail/standards/attachments/20080104/168e7cd6/attachment-0001.bin 


More information about the Standards mailing list