mirror of
https://github.com/moparisthebest/xeps
synced 2024-10-31 15:35:07 -04:00
107 lines
5.1 KiB
XML
107 lines
5.1 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!DOCTYPE xep SYSTEM 'xep.dtd' [
|
|
<!ENTITY % ents SYSTEM 'xep.ent'>
|
|
%ents;
|
|
]>
|
|
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
|
|
<xep>
|
|
<header>
|
|
<title>PubSub Since</title>
|
|
<abstract>This specification defines a publish-subscribe feature that enables a subscriber to automatically receive pubsub and PEP notifications since its last logout time.</abstract>
|
|
&LEGALNOTICE;
|
|
<number>xxxx</number>
|
|
<status>ProtoXEP</status>
|
|
<type>Standards Track</type>
|
|
<sig>Standards</sig>
|
|
<approver>Council</approver>
|
|
<dependencies>
|
|
<spec>XMPP Core</spec>
|
|
</dependencies>
|
|
<supersedes/>
|
|
<supersededby/>
|
|
<shortname>NOT_YET_ASSIGNED</shortname>
|
|
&hildjj;
|
|
&stpeter;
|
|
<revision>
|
|
<version>0.0.1</version>
|
|
<date>2012-02-27</date>
|
|
<initials>psa</initials>
|
|
<remark><p>First draft.</p></remark>
|
|
</revision>
|
|
</header>
|
|
|
|
<section1 topic='Introduction' anchor='introduction'>
|
|
<p>Many &xep0060; and &xep0163; services send notifications based on information about the presence of subscribers. This implies that subscribers might not receive notifications that were generated when they are offline at a particular resource. While &xep0256; defines a way for clients to include their last logout time, this specification closes the loop by defining how pubsub and PEP services can use the last logout information to send interim notifications to subscribers.</p>
|
|
</section1>
|
|
|
|
<section1 topic='How It Works' anchor='feature'>
|
|
<p>As described in XEP-0256, a subscriber can indicate its last logout time when sending initial presence.</p>
|
|
<example caption='Last Indication in Initial Presence'><![CDATA[
|
|
<presence from='juliet@capulet.com/balcony'>
|
|
<query xmlns='jabber:iq:last' seconds='86511'/>
|
|
</presence>
|
|
]]></example>
|
|
<p>Upon receiving such an indication, a pubsub or PEP service that supports presence-based notifications and the "pubsub-since" feature defined herein would behave as follows:</p>
|
|
<ol>
|
|
<li>The service MUST send to the subscriber all of the notifications stored in the relevant node's history that were generated since the last logout time.</li>
|
|
<li>The service MAY adjust its definition of "interim notification" to account for reasonable clock skew (e.g., including notifications up to five minutes older than the subscriber's last logout time).</li>
|
|
<li>The service SHOULD include only the final version of each pubsub notification (e.g., in case of items that were updated during the period when the subscriber was offline).</li>
|
|
<li>The service SHOULD NOT include items that were removed from the node.</li>
|
|
<li>The service MAY limit the number of notifications that it sends to avoid resource contraints.</li>
|
|
<li>The service MAY include &xep0059; data so that the subscriber can page through the set of interim notifications.</li>
|
|
</ol>
|
|
</section1>
|
|
|
|
<section1 topic='Determining Support' anchor='disco'>
|
|
<p>If a pubsub or PEP service supports the protocol defined herein, it MUST report that by including a &xep0030; feature of "http://jabber.org/protocol/pubsub#since" in response to disco#info requests:</p>
|
|
<example caption="Service discovery information request"><![CDATA[
|
|
<iq from='bard@shakespeare.lit/globe'
|
|
id='sb2t1d49'
|
|
to='pubsub.shakespeare.lit'
|
|
type='get'>
|
|
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
|
</iq>
|
|
]]></example>
|
|
<example caption="Service discovery information response"><![CDATA[
|
|
<iq from='pubsub.shakespeare.lit'
|
|
id='sb2t1d49'
|
|
to='bard@shakespeare.lit/globe'
|
|
type='result'>
|
|
<query xmlns='http://jabber.org/protocol/disco#info'>
|
|
<identity category='pubsub' type='service'/>
|
|
<feature var='http://jabber.org/protocol/pubsub'/>
|
|
<feature var='http://jabber.org/protocol/pubsub#auto-subscribe'/>
|
|
<feature var='http://jabber.org/protocol/pubsub#presence-notifications'/>
|
|
<feature var='http://jabber.org/protocol/pubsub#since'/>
|
|
</query>
|
|
</iq>
|
|
]]></example>
|
|
</section1>
|
|
|
|
<section1 topic='Security Considerations' anchor='security'>
|
|
<p>The number or cumulative size of the notifications published since the subscriber's last login time might be large, causing a significant load on the service. Implementations might consider truncating the interim notifications to avoid a denial of service.</p>
|
|
</section1>
|
|
|
|
<section1 topic='IANA Considerations' anchor='iana'>
|
|
<p>This document requires no interaction with &IANA;.</p>
|
|
</section1>
|
|
|
|
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
|
|
<section2 topic='Service Discovery Features' anchor='registrar-features'>
|
|
<p>Support for the feature defined in this document is advertised by the ""http://jabber.org/protocol/pubsub#since"" Service Discovery feature.</p>
|
|
<p>The XMPP Registrar shall add this feature to its registry at &DISCOFEATURES;. The registration is as follows.</p>
|
|
<code caption='Registry Submission'><![CDATA[
|
|
<var>
|
|
<name>http://jabber.org/protocol/pubsub#since</name>
|
|
<desc>
|
|
The pubsub or PEP service sends interim notifications upon receiving
|
|
initial presence containing the subscriber's last logout time.
|
|
</desc>
|
|
<doc>XEP-xxxx</doc>
|
|
</var>
|
|
]]></code>
|
|
</section2>
|
|
</section1>
|
|
|
|
</xep>
|