No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0194.xml 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM 'xep.ent'>
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>User Chatting</title>
  10. <abstract>This specification defines an XMPP protocol extension for communicating information about the chatrooms a user visits.</abstract>
  11. &LEGALNOTICE;
  12. <number>0194</number>
  13. <status>Deferred</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <dependencies>
  17. <spec>XMPP Core</spec>
  18. <spec>XMPP IM</spec>
  19. <spec>XEP-0060</spec>
  20. <spec>XEP-0163</spec>
  21. </dependencies>
  22. <supersedes/>
  23. <supersededby/>
  24. <shortname>NOT_YET_ASSIGNED</shortname>
  25. &stpeter;
  26. <revision>
  27. <version>0.3</version>
  28. <date>2008-09-25</date>
  29. <initials>psa</initials>
  30. <remark><p>Modified namespace in accordance with protocol versioning policies.</p></remark>
  31. </revision>
  32. <revision>
  33. <version>0.2</version>
  34. <date>2007-10-03</date>
  35. <initials>psa</initials>
  36. <remark><p>Updated in accordance with XEP-0163.</p></remark>
  37. </revision>
  38. <revision>
  39. <version>0.1</version>
  40. <date>2006-08-30</date>
  41. <initials>psa</initials>
  42. <remark><p>Initial version.</p></remark>
  43. </revision>
  44. <revision>
  45. <version>0.0.1</version>
  46. <date>2006-08-28</date>
  47. <initials>psa</initials>
  48. <remark><p>First draft.</p></remark>
  49. </revision>
  50. </header>
  51. <section1 topic='Introduction' anchor='intro'>
  52. <p>&xep0060; and &xep0163; can be used to publish a wide variety of "extended presence" information about users. This document specifies an extended presence payload format that communicates information about the chatrooms a user visits. This information may be of interest to a user's contacts and can also be used in social networking applications.</p>
  53. </section1>
  54. <section1 topic='Protocol' anchor='protocol'>
  55. <section2 topic='Container Element and Child Elements' anchor='protocol-elements'>
  56. <p>Information about chatrooms is provided by the user (or automated integration with Jabber, IRC, or other systems) and is propagated on the network by the user's client. The information container for chatting data is a &lt;room/&gt; element that is qualified by the 'urn:xmpp:chatting:0' namespace &VNOTE;. The chatting information itself is provided as the XML character data of the following children of the &lt;room/&gt; element:</p>
  57. <table caption='Child Elements'>
  58. <tr>
  59. <th>Element</th>
  60. <th>Description</th>
  61. <th>Example</th>
  62. <th>Datatype</th>
  63. <th>Inclusion</th>
  64. </tr>
  65. <tr>
  66. <td>name</td>
  67. <td>The name of the chatroom</td>
  68. <td>Jabber Development</td>
  69. <td>xs:string</td>
  70. <td>OPTIONAL</td>
  71. </tr>
  72. <tr>
  73. <td>topic</td>
  74. <td>The current topic of discussion in the room</td>
  75. <td>BOSH meeting</td>
  76. <td>xs:string</td>
  77. <td>OPTIONAL</td>
  78. </tr>
  79. <tr>
  80. <td>uri</td>
  81. <td>A URI for the room (this SHOULD be an XMPP URI or IRI in accordance with &rfc5122; but MAY use some other URI scheme, such as the irc: scheme)</td>
  82. <td>xmpp:jdev@conference.jabber.org</td>
  83. <td>xs:anyURI</td>
  84. <td>REQUIRED</td>
  85. </tr>
  86. </table>
  87. <p>NOTE: The datatypes specified above are defined in &w3xmlschema2;.</p>
  88. </section2>
  89. <section2 topic='Transport Mechanism' anchor='protocol-transport'>
  90. <p>When a user joins a room, its client MAY publish that fact to a PEP node whose NodeID is "urn:xmpp:chatting:0" &VNOTE; or to a generic pubsub node. Because chatroom information is not pure presence information and can change independently of the user's availability, it SHOULD NOT be provided as an extension to the &PRESENCE; stanza type.</p>
  91. <example caption='User Publishes Chatting Information'><![CDATA[
  92. <iq type='set' from='stpeter@jabber.org/work' id='chatting1'>
  93. <pubsub xmlns='http://jabber.org/protocol/pubsub'>
  94. <publish node='urn:xmpp:chatting:0'>
  95. <item id='1b395148292c0b0ab3a83bb2c22909bf83d2a80b'>
  96. <room xmlns='urn:xmpp:chatting:0'>
  97. <name>Jabber Development</name>
  98. <uri>xmpp:jdev@conference.jabber.org</uri>
  99. </room>
  100. </item>
  101. </publish>
  102. </pubsub>
  103. </iq>
  104. ]]></example>
  105. <p>The chatting information is then delivered to all subscribers:</p>
  106. <example caption='Chatting Information is Delivered to All Subscribers'><![CDATA[
  107. <message from='stpeter@jabber.org' to='maineboy@jabber.org'>
  108. <event xmlns='http://jabber.org/protocol/pubsub#event'>
  109. <items node='urn:xmpp:chatting:0'>
  110. <item id='1b395148292c0b0ab3a83bb2c22909bf83d2a80b'>
  111. <room xmlns='urn:xmpp:chatting:0'>
  112. <name>Jabber Development</name>
  113. <uri>xmpp:jdev@conference.jabber.org</uri>
  114. </room>
  115. </item>
  116. </items>
  117. </event>
  118. </message>
  119. ]]></example>
  120. <p>When the user exits the room, the user's client SHOULD send an empty &lt;room/&gt; element with the same ItemID:</p>
  121. <example caption='User Publishes Exit Information'><![CDATA[
  122. <iq type='set' from='stpeter@jabber.org/work' id='chatting2'>
  123. <pubsub xmlns='http://jabber.org/protocol/pubsub'>
  124. <publish node='urn:xmpp:chatting:0'>
  125. <item id='1b395148292c0b0ab3a83bb2c22909bf83d2a80b'>
  126. <room xmlns='urn:xmpp:chatting:0'/>
  127. </item>
  128. </publish>
  129. </pubsub>
  130. </iq>
  131. ]]></example>
  132. <example caption='Exit Information is Delivered to All Subscribers'><![CDATA[
  133. <message from='stpeter@jabber.org' to='maineboy@jabber.org'>
  134. <event xmlns='http://jabber.org/protocol/pubsub#event'>
  135. <items node='urn:xmpp:chatting:0'>
  136. <item id='1b395148292c0b0ab3a83bb2c22909bf83d2a80b'>
  137. <room xmlns='urn:xmpp:chatting:0'/>
  138. </item>
  139. </items>
  140. </event>
  141. </message>
  142. ]]></example>
  143. </section2>
  144. </section1>
  145. <section1 topic='Security Considerations' anchor='security'>
  146. <p>The chat rooms that a user visits may be sensitive. A client MUST provide a way for a user to configure which rooms or types of rooms will not be published (e.g., via user preferences).</p>
  147. </section1>
  148. <section1 topic='IANA Considerations' anchor='iana'>
  149. <p>This document requires no interaction with &IANA;.</p>
  150. </section1>
  151. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  152. <section2 topic='Protocol Namespaces' anchor='registrar-ns'>
  153. <p>This specification defines the following XML namespace:</p>
  154. <ul>
  155. <li>urn:xmpp:chatting:0</li>
  156. </ul>
  157. <p>Upon advancement of this specification from a status of Experimental to a status of Draft, the &REGISTRAR; shall add the foregoing namespace to the registry located at &NAMESPACES;, as described in Section 4 of &xep0053;.</p>
  158. </section2>
  159. <section2 topic='Namespace Versioning' anchor='registrar-versioning'>
  160. &NSVER;
  161. </section2>
  162. </section1>
  163. <section1 topic='XML Schema' anchor='schema'>
  164. <code><![CDATA[
  165. <?xml version='1.0' encoding='UTF-8'?>
  166. <xs:schema
  167. xmlns:xs='http://www.w3.org/2001/XMLSchema'
  168. targetNamespace='urn:xmpp:chatting:0'
  169. xmlns='urn:xmpp:chatting:0'
  170. elementFormDefault='qualified'>
  171. <xs:element name='room'>
  172. <xs:complexType>
  173. <xs:sequence minOccurs='0'>
  174. <xs:element name='name' type='xs:string' minOccurs='0'/>
  175. <xs:element name='topic' type='xs:string' minOccurs='0'/>
  176. <xs:element name='uri' type='xs:anyURI'/>
  177. </xs:sequence>
  178. </xs:complexType>
  179. </xs:element>
  180. </xs:schema>
  181. ]]></code>
  182. </section1>
  183. </xep>