On 11/19/09 6:01 AM, Dirk Meyer wrote:

>> 6.5.9 Requesting All Items Since a Given Version
>>
>> The subscriber can request all items published since a particular
>> version of the published data by specifying the Node ID and 'ver'
>> attribute (about which see Item Versioning).
>>
>> Example 87. Subscriber requests items since a given version
>>
>> <iq type='get'
>>     from='[email protected]/barracks'
>>     to='pubsub.shakespeare.lit'
>>     id='items3'>
>>   <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>>     <items node='princely_musings'
>>            ver='some-version-string'/>
>>   </pubsub>
>> </iq>
>>
>>
>> The service would then return all the items published since that version
>> of the data published at the node.
> 
> What happens with deleted items? E.g. you have items 1, 2, 3 and the
> current version has 1, 3, 4. The server sends 4 in <items> but must have
> a way to signal that 2 is gone now.

As with rosters, I suppose the service would also send notification of
deletions.

> I have another request for the ver attribute: initial message after
> subscription. We have pubsub#send_last_published_item and I would like
> to suggest new possible values such as only_ver_on_sub_and_presence and
> only_ver_on_sub. Instead of sending the last item as PEP does, only send
> the version when a new client subscribes or gets online with
> auto-subscription.

By "only send the version" do you mean "send the last published item but
include 'ver' attribute only if configured to do so" or "send only the
items that have changed since the version specified by the subscriber"?
If the latter, are you suggesting that the subscriber needs to
explicitly request items before sending presence?

> For the persistent storage using pubusb I would like to send my presence
> status to the server with the auto-subscription hash and receive the ver
> attributes of all my storage nodes (pubkeys, bookmarks) and fetch the
> changed items.

Right, but where do you put the 'ver' in your initial presence?

Peter

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


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to