-
Notifications
You must be signed in to change notification settings - Fork 122
/
xep-0036.xml
122 lines (114 loc) · 5.32 KB
/
xep-0036.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?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>Pub-Sub Subscriptions</title>
<abstract>A proposal for the subscribe half of a publish-subscribe protocol within Jabber.</abstract>
&LEGALNOTICE;
<number>0036</number>
<status>Retracted</status>
<type>Standards Track</type>
<sig>Standards</sig>
<approver>Council</approver>
<dependencies/>
<supersedes/>
<supersededby><spec>XEP-0060</spec></supersededby>
<shortname>None</shortname>
&pgmillard;
&stpeter;
<revision>
<version>0.2</version>
<date>2003-04-22</date>
<initials>psa</initials>
<remark>At the request of the authors, the status of this specification has been changed to Retracted since it has been superseded by XEP-0060.</remark>
</revision>
<revision>
<version>0.1</version>
<date>2002-07-12</date>
<initials>psa</initials>
<remark>Initial version based on discussions at JabberConf.</remark>
</revision>
</header>
<section1 topic='Introduction'>
<p>The Jabber community needs a cohesive standard for publish-subscribe functionality. Certainly there is interest in developing such a standard, as witness the number of proposals written on this topic (&xep0021;, &xep0024;, XEP-0028). Unfortunately, past discussion of this issue has been clouded by confusion over requirements and even terminology. This XEP seeks to clarify the situation somewhat and to provide a protocol for the subscribe half of publish-subscribe functionality within Jabber.</p>
</section1>
<section1 topic='Narrative'>
<p>Traditional pub-sub consists of event notification. This makes it possible for entities to publish data and for other interested entities to receive notification when the data is published. The following are some likely applications of pub-sub functionality within Jabber:</p>
<ul>
<li>Auction and trading systems</li>
<li>Online catalogs</li>
<li>Document workflow systems</li>
<li>Network management systems</li>
<li>NNTP over Jabber</li>
<li>Groupchat</li>
</ul>
<p>In such systems, a subscriber would request to receive notifications about data the subscriber is interested in. We define a "topic" as an object that defines the relationship between a publisher and its subscribers. Specifically, a topic contains three essential collections of information:</p>
<ol>
<li>A description of the information that will be provided</li>
<li>A list of subscribers to items that fit the description</li>
<li>One or more items that fit the description</li>
</ol>
<p>We define an "item" as an instance of data published by the publisher that fits the description associated with a topic. Each item MAY possess a unique identifier that enables the data to be tracked. (NOTE: This XEP does not address the durability of items, i.e., data storage.)</p>
<p>A topic is addressed by means of a unique "topic ID". A topic ID is simply a string with no required semantic meaning. While a topic ID may have semantic meaning (e.g., '/instruments/guitars/electric' or 'rec.music.dylan'), such meaning is not necessary and a topic ID may be any random string (e.g., 'a1gh83jfn342092'). The only requirement is that a topic ID be unique within the context of a specific pub-sub domain (e.g., pubsub.jabber.org).</p>
</section1>
<section1 topic='Protocol Details'>
<example caption="Protocol">
<iq type="set" from="[email protected]" to="pubsub.jabber.org" id="1">
<query xmlns="jabber:iq:pubsub">
<subscribe>
<topic id="12345"/>
<topic id="/presence/[email protected]"/>
</subscribe>
</query>
</iq>
<iq type="set" from="[email protected]" to="pubsub.jabber.org" id="1">
<query xmlns="jabber:iq:pubsub">
<unsubscribe>
<topic id="12345"/>
</unsubscribe>
</query>
</iq>
<iq type="set" to="pubsub.jabber.org" id="1">
<query xmlns="jabber:iq:pubsub">
<publish>
<topic id="12345">
<item>some kind of cdata goes here</item>
</topic>
</publish>
</query>
</iq>
<iq type="set" to="pubsub.jabber.org" id="1">
<query xmlns="jabber:iq:pubsub">
<createtopic>
<topic id="new_topic">
<profile>
<!-- is this even remotely close?? -->
<publisher>[email protected]</publisher>
<publisher>[email protected]</publisher>
</profile>
</topic>
<topic id="another_topic>
<profile>
<publisher/>
</profile>
</topic>
</createtopic>
</query>
</iq>
<iq type="set" to="pubsub.jabber.org" id="1">
<query xmlns="jabber:iq:pubsub">
<removetopic>
<topic id="12345"/>
</removetopic>
</query>
</iq>
</example>
</section1>
<section1 topic='Author Note' anchor='authornote'>
<p>Peter Millard, co-author of this specification, died on April 26, 2006.</p>
</section1>
</xep>