Abstract: | This specification defines a publish-subscribe feature that enables a subscriber to automatically receive pubsub and PEP notifications since the last logout time of a specific resource. |
Authors: | Joe Hildebrand, Peter Saint-Andre |
Copyright: | © 1999 - 2012 XMPP Standards Foundation. SEE LEGAL NOTICES. |
Status: | Experimental |
Type: | Standards Track |
Version: | 0.1 |
Last Updated: | 2012-02-29 |
WARNING: This Standards-Track document is Experimental. Publication as an XMPP Extension Protocol does not imply approval of this proposal by the XMPP Standards Foundation. Implementation of the protocol described herein is encouraged in exploratory implementations, but production systems are advised to carefully consider whether it is appropriate to deploy implementations of this protocol before it advances to a status of Draft.
1. Introduction
2. How It Works
3. Determining Support
4. Security Considerations
5. IANA Considerations
6. Implementation Notes
7. XMPP Registrar Considerations
7.1. Service Discovery Features
Appendices
A: Document Information
B: Author Information
C: Legal Notices
D: Relation to XMPP
E: Discussion Venue
F: Requirements Conformance
G: Notes
H: Revision History
Many Publish-Subscribe [1] and Personal Eventing Protocol [2] 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 Last Activity in Presence [3] 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.
As described in XEP-0256, a subscriber (i.e., a subscriber's specific full JID) can indicate its last logout time when sending initial presence.
<presence from='juliet@capulet.com/balcony'> <query xmlns='jabber:iq:last' seconds='86511'/> </presence>
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:
If the pubsub service receives subsequent available presence from that full JID (even a presence update that includes the last availability indication), it MUST behave according to the rules in XEP-0060 or XEP-0163 (typically this means it would do nothing, since presence-based notifications toggle notifications on when receiving initial presence and toggling notifications off when receiving unavailable presence).
If a pubsub or PEP service supports the protocol defined herein, it MUST report that by including a Service Discovery [5] feature of "http://jabber.org/protocol/pubsub#since" in response to disco#info requests:
<iq from='bard@shakespeare.lit/globe' id='sb2t1d49' to='pubsub.shakespeare.lit' type='get'> <query xmlns='http://jabber.org/protocol/disco#info'/> </iq>
<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>
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.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].
The Last Activity extension (XEP-0012) notates time in seconds before the moment of stanza generation. Although some commenters have suggested that it would be easier to implement last activity notations in terms of UTC timestamps, clients can mitigate some implementation problems by storing the last activity time in UTC instead of local time (in case the device is moved across time zones) and by using standard technologies for clock synchronization such as RFC 1305 [7] and Entity Time [8]. The five-minute grace period is merely an implementation suggestion; implementation and deployment experience might indicate that other values are more prudent.
Support for the feature defined in this document is advertised by the ""http://jabber.org/protocol/pubsub#since"" Service Discovery feature.
The XMPP Registrar shall add this feature to its registry at <http://xmpp.org/registrar/disco-features.html>. The registration is as follows.
<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>
Series: XEP
Number: 0312
Publisher: XMPP Standards Foundation
Status:
Experimental
Type:
Standards Track
Version: 0.1
Last Updated: 2012-02-29
Approving Body: XMPP Council
Dependencies: XMPP Core
Supersedes: None
Superseded By: None
Short Name: NOT_YET_ASSIGNED
Source Control:
HTML
This document in other formats:
XML
PDF
Email:
jhildebr@cisco.com
JabberID:
hildjj@jabber.org
Email:
stpeter@jabber.org
JabberID:
stpeter@jabber.org
URI:
https://stpeter.im/
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
The primary venue for discussion of XMPP Extension Protocols is the <standards@xmpp.org> discussion list.
Discussion on other xmpp.org discussion lists might also be appropriate; see <http://xmpp.org/about/discuss.shtml> for a complete list.
Errata can be sent to <editor@xmpp.org>.
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
1. XEP-0060: Publish-Subscribe <http://xmpp.org/extensions/xep-0060.html>.
2. XEP-0163: Personal Eventing Protocol <http://xmpp.org/extensions/xep-0163.html>.
3. XEP-0256: Last Activity in Presence <http://xmpp.org/extensions/xep-0256.html>.
4. XEP-0059: Result Set Management <http://xmpp.org/extensions/xep-0059.html>.
5. XEP-0030: Service Discovery <http://xmpp.org/extensions/xep-0030.html>.
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <http://www.iana.org/>.
7. RFC 1305: Network Time Protocol (Version 3) <http://tools.ietf.org/html/rfc1305>.
8. XEP-0202: Entity Time <http://xmpp.org/extensions/xep-0202.html>.
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/
Initial published version.
(psa)Addressed some feedback from the XMPP Council.
(psa)First draft.
(psa)END