Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  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>Federated MUC for Constrained Environments</title>
  10. <abstract>This document provides a protocol for federating MUC rooms together in order to reduce the effects of constrained network (e.g. unreliability, severely limited bandwidth) on the room occupants.</abstract>
  11. &LEGALNOTICE;
  12. <number>0289</number>
  13. <status>Deferred</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <approver>Council</approver>
  17. <dependencies>
  18. <spec>XMPP Core</spec>
  19. <spec>XEP-0045</spec>
  20. </dependencies>
  21. <supersedes>
  22. <spec>XEP-0281</spec>
  23. </supersedes>
  24. <supersededby/>
  25. <shortname>FMUC</shortname>
  26. &ksmithisode;
  27. <revision>
  28. <version>0.2</version>
  29. <date>2012-05-29</date>
  30. <initials>kis</initials>
  31. <remark><p>Reworking for new protocol and clarity of purpose.</p></remark>
  32. </revision>
  33. <revision>
  34. <version>0.1</version>
  35. <date>2010-11-29</date>
  36. <initials>psa</initials>
  37. <remark><p>Initial published version.</p></remark>
  38. </revision>
  39. <revision>
  40. <version>0.0.1</version>
  41. <date>2010-05-24</date>
  42. <initials>kis</initials>
  43. <remark><p>First draft.</p></remark>
  44. </revision>
  45. </header>
  46. <section1 topic='Introduction' anchor='intro'>
  47. <p>MUC's design generally assumes a highly reliable network providing plenty of bandwidth, and it functions well in Internet settings. It is sometimes the case that server to server traffic is heavily constrained, with typical problems for constrained links being high latency, tiny amounts of available bandwidth and unreliability (including, potentially, long-term failure of S2S links). This document provides methods for allowing experiences close to those of standard MUC use while operating across such constrained links by allowing rooms to federate with remote counterparts and for users to connect to the federated MUC node nearest to them on the network for a given FMUC room. It requires no setup in advance, and needs no bandwidth for remote rooms without local occupants. The premise is that a proxy room joins another room and receives stanzas from the MUC just as another occupant would; this is analogous to the client to server model, whereby a client would connect to their local server and the server deals with connections elsewhere - the client joins a local room and the room deals with connections to other federated rooms.</p>
  48. <section2 topic='Terminology' anchor='terminology'>
  49. <p>As MUCs are generally self-contained entities with a single address, federating them requires the introduction of some new terminology:</p>
  50. <ul>
  51. <li>FMUC set - the union of all MUC rooms that federate together</li>
  52. <li>FMUC node - a single MUC room that is a member of an FMUC set (abbreviated to "node")</li>
  53. <li>FMUC room - a room represented by an FMUC set</li>
  54. <li>Master-Master mode - two FMUC nodes operating such that both will continue to work when a network fails between them. This mode has the properties of reduced network traffic and of not having a guarantee of consistent message ordering between nodes</li>
  55. <li>Master-Slave mode - two FMUC nodes operating where one, the master, will continue working during a network outage while the slave will cease to work while it cannot communicate with the master. This mode has increased network traffic and a consistent message delivery order across both nodes.</li>
  56. <li>Joining FMUC node - a node that initiates an FMUC connection to another node (abbreviated to "joining node").</li>
  57. <li>Joined FMUC node - a node that accepts an FMUC connection from another node (abbreviated to "joined node"). Note that when nodes are connected in a tree-like structure a node in one of the middle layers will be both a joining node in the context of its connection to the room above it and also a joined node in the context of those nodes below that join to it.</li>
  58. </ul>
  59. <p>For illustration: if room1@rooms.server1.lit and room2@rooms.server2.lit federate with each other, then room1@rooms.server1.lit is an FMUC node, as is room2@rooms.server2.lit. Both nodes are in the FMUC set (along with any other node rooms that mutually federate) while the conceptual single room created by joining the FMUC set together is the FMUC room (and this FMUC room does not have a single definitive identifier).</p>
  60. </section2>
  61. </section1>
  62. <section1 topic='Requirements' anchor='reqs'>
  63. <ul>
  64. <li>If appropriately configured, avoid bandwidth use that isn't strictly necessary for message exchange.</li>
  65. <li>Allow conversation in a federated MUC to continue when one of the federated nodes is unavailable (e.g. due to network failure preventing S2S links forming), such that the nodes operate in a 'peer to peer' or 'multi-master' mode.</li>
  66. <li>If configured, allow a master/slave configuration such that a disconnected node is no longer usable for local chat</li>
  67. <li><em>Acceptable compromise</em> When operating in multi-master mode the message ordering may not be consistent between FMUC nodes.</li>
  68. </ul>
  69. </section1>
  70. <section1 topic='Addressing' anchor='addressing'>
  71. <p>In Federated MUC an FMUC room does not have a single logical address; when joining the FMUC room a user's client can join any of the nodes in the FMUC set for that room, and all addressing will appear to that client as if this was the single canonical representation of the room's address - while other users in the room may see different addresses dependent upon the node they joined.</p>
  72. <p>It is possible, although not required, for an implementation and deployment to use &xep0106; to make naming schemes easy to manage, but this is a matter of deployment policy and not of the protocol defined herein.</p>
  73. </section1>
  74. <section1 topic='Actors' anchor='actors'>
  75. <p>The following JIDs are used in this document.</p>
  76. <ul>
  77. <li>wonderland.lit - service</li>
  78. <li>rooms.wonderland.lit - MUC service on wonderland.lit.</li>
  79. <li>alice@wonderland.lit - User on wonderland.lit</li>
  80. <li>hatter@wonderland.lit - User on wonderland.lit</li>
  81. <li>rabbithole@rooms.wonderland.lit - MUC room / FMUC node.</li>
  82. <li>denmark.lit - service, likely connected to wonderland.lit over constrained link</li>
  83. <li>talk.denmark.lit - MUC service on denmark.lit.</li>
  84. <li>hamlet@denmark.lit - User on denmark.lit</li>
  85. <li>ophelia@denmark.lit - User on denmark.lit</li>
  86. <li>elsinore@talk.denmark.lit - MUC room / FMUC node.</li>
  87. </ul>
  88. </section1>
  89. <section1 topic='Use Cases' anchor='usecases'>
  90. <section2 topic='Initial Federation' anchor='startup'>
  91. <p>Here hamlet@denmark.lit is going to join the (currently empty) elsinor@talk.denmark.lit room. This room is configured as an FMUC node, federating with the rabbithole@rooms.wonderland.lit node, which current has one occupant - alice@wonderland.lit. The method of configuration that elsinor should federate with rabbithole is considered out of scope for this document - it is suggested that it be including in the standard MUC room configuration form. Note that this configuration only needs to be one way (that is: there is no protocol reason why rabbithole needs to know that elsinor will be federating with it in advance) - this allows for the ad-hoc addition of additional nodes to the FMUC room.</p>
  92. <p>First hamlet@denmark.lit issues a normal MUC join request to elsinor@talk.denmark.lit</p>
  93. <example caption='User joins FMUC node'><![CDATA[
  94. <presence from='hamlet@denmark.lit/priam-ubuntu-vm' to="elsinore@talk.denmark.lit/Hamlet">
  95. <x xmlns="http://jabber.org/protocol/muc"/>
  96. </presence>
  97. ]]></example>
  98. <p>Elsinor then attempts to join with the FMUC node rabbithole@rooms.wonderland.lit.</p>
  99. <example caption='FMUC Node begins initiates federation'><![CDATA[
  100. <presence from='elsinore@talk.denmark.lit/Hamlet' to='rabbithole@rooms.wonderland.lit/Hamlet'>
  101. <fmuc xmlns='http://isode.com/protocol/fmuc' from='hamlet@denmark.lit/priam-ubuntu-vm'/>
  102. <x xmlns="http://jabber.org/protocol/muc"/>
  103. <x xmlns="http://jabber.org/protocol/muc#user">
  104. <item affiliation="none" role="participant" jid="hamlet@denmark.lit/priam-ubuntu-vm"/>
  105. </x>
  106. </presence>
  107. ]]></example>
  108. <p>Now rabbithole may reject the join, if elsinor is not permitted to federate. To do this it sends a 'presence' reply from its bare JID to the bare JID of the joining node with an 'fmuc' payload containing a 'reject' element and MAY include a human-readable explanation as the text content of the 'reject' element.</p>
  109. <example caption='Second FMUC Node rejects federation'><![CDATA[
  110. <presence from="rabbithole@rooms.wonderland.lit" to="elsinore@talk.denmark.lit">
  111. <fmuc xmlns="http://isode.com/protocol/fmuc">
  112. <reject>No cross-domain federation.</reject>
  113. </fmuc>
  114. </presence>
  115. ]]></example>
  116. <p>Or it may accept the federation request and reply with the list of current occupants and message context in the same order as specified in XEP-0045. Note that the fmuc element is always added containing the JID of the user (possibly passed down from other FMUC nodes, or indeed from the joining node for the presence of the user used for the initial join), while the XEP-0045 rules apply for whether to include the jid in the muc#user element.</p>
  117. <p>As part of the initial join of one node to another, the node being joined will send the current topic to the node doing the joining. The node receiving this (the joining node) SHOULD replace its own subject with the received one.</p>
  118. <p>The joining node may add an element to the initial presence to the node being joined limiting the amount of history to be sent in the normal manner, as in XEP-0045.</p>
  119. <example caption='Second FMUC Node accepts federation and sends occupants and history'><![CDATA[
  120. <presence from="rabbithole@rooms.wonderland.lit/Alice" to="elsinore@talk.denmark.lit">
  121. <fmuc xmlns="http://isode.com/protocol/fmuc" from="alice@wonderland.lit/priam-ubuntu-vm"/>
  122. <x xmlns="http://jabber.org/protocol/muc#user">
  123. <item affiliation="owner" role="moderator" jid="alice@wonderland.lit/priam-ubuntu-vm"/>
  124. </x>
  125. </presence>
  126. <presence from="rabbithole@rooms.wonderland.lit/Hamlet" to="elsinore@talk.denmark.lit">
  127. <fmuc xmlns="http://isode.com/protocol/fmuc" from="hamlet@denmark.lit/priam-ubuntu-vm"/>
  128. <x xmlns="http://jabber.org/protocol/muc#user">
  129. <item affiliation="none" role="participant" jid="hamlet@denmark.lit/priam-ubuntu-vm"/>
  130. </x>
  131. </presence>
  132. <message from="rabbithole@rooms.wonderland.lit/Alice" to="elsinore@talk.denmark.lit" type="groupchat">
  133. <fmuc xmlns="http://isode.com/protocol/fmuc" from="alice@wonderland.lit/priam-ubuntu-vm"/>
  134. <body>This is an old message from the history</body>
  135. <x xmlns="urn:xmpp:delay" from="rabbithole@rooms.wonderland.lit" stamp="20120419T16:00:44"/>
  136. </message>
  137. <message from="rabbithole@rooms.wonderland.lit/Hatter" to="elsinore@talk.denmark.lit" type="groupchat">
  138. <fmuc xmlns="http://isode.com/protocol/fmuc" from="hatter@wonderland.lit/priam-ubuntu-vm"/>
  139. <body>This is another old message from the history</body>
  140. <x xmlns="urn:xmpp:delay" from="rabbithole@rooms.wonderland.lit" stamp="20120501T10:03:24"/>
  141. </message>
  142. <message from="rabbithole@rooms.wonderland.lit/Alice" to="elsinore@talk.denmark.lit" type="groupchat">
  143. <fmuc xmlns="http://isode.com/protocol/fmuc" from="hatter@wonderland.lit/priam-ubuntu-vm"/>
  144. <subject>This is the subject</subject>
  145. <x xmlns="urn:xmpp:delay" from="rabbithole@rooms.wonderland.lit" stamp="20120528T14:39:34"/>
  146. </message>
  147. ]]></example>
  148. <p>Upon receiving the occupants, history and subject from the other node the joining FMUC node will process these in the normal way, treating the received presence as joins, adding the history to the room's history (re-ordering by delay?) and changing the subject. The joining FMUC node MUST NOT send the traffic generated by these data back to the joined room, but only deliver them to local participants (and in the case of chained FMUC nodes, any nodes joined to it). It also MUST NOT pass the fmuc payloads through to local clients.</p>
  149. <example caption='First FMUC Node relays the state to the joined client'><![CDATA[
  150. <presence from="elsinore@talk.denmark.lit/Alice" to="hamlet@denmark.lit/priam-ubuntu-vm">
  151. <x xmlns="http://jabber.org/protocol/muc#user">
  152. <item affiliation="owner" role="moderator" jid="alice@wonderland.lit/priam-ubuntu-vm"/>
  153. </x>
  154. </presence>
  155. <presence from="elsinore@talk.denmark.lit/Hamlet" to="hamlet@denmark.lit/priam-ubuntu-vm">
  156. <x xmlns="http://jabber.org/protocol/muc#user">
  157. <item affiliation="none" role="participant" jid="hamlet@denmark.lit/priam-ubuntu-vm"/>
  158. </x>
  159. </presence>
  160. <message from="elsinore@talk.denmark.lit/Alice" to="hamlet@denmark.lit/priam-ubuntu-vm" type="groupchat">
  161. <body>This is an old message from the history</body>
  162. <x xmlns="urn:xmpp:delay" from="rabbithole@rooms.wonderland.lit" stamp="20120419T16:00:44"/>
  163. </message>
  164. <message from="elsinore@talk.denmark.lit/Hatter" to="hamlet@denmark.lit/priam-ubuntu-vm" type="groupchat">
  165. <body>This is another old message from the history</body>
  166. <x xmlns="urn:xmpp:delay" from="rabbithole@rooms.wonderland.lit" stamp="20120501T10:03:24"/>
  167. </message>
  168. <message from="elsinore@talk.denmark.lit/Hatter" to="hamlet@denmark.lit/priam-ubuntu-vm" type="groupchat">
  169. <subject>This is the subject</subject>
  170. <x xmlns="urn:xmpp:delay" from="rabbithole@rooms.wonderland.lit" stamp="20120528T14:39:34"/>
  171. </message>
  172. ]]></example>
  173. </section2>
  174. <section2 topic="Sending messages" anchor="messages">
  175. <p>Then hamlet@denmark.lit sends a message to the FMUC room, which is sent from the elsinor node to the rabbithole node and then broadcast to the local occupants of each room according to the standard XEP-0045 rules (rabbithole distributes to alice, elsinor distributes to hamlet). This example is for master-master mode, so rabbithole does not echo the message back to elsinore and elsinore does not need to wait for receipt of this stanza from rabbithole before distributing the stanza locally.</p>
  176. <example caption='User on FMUC Node sends a message'><![CDATA[
  177. <message from='hamlet@denmark.lit/priam-ubuntu-vm' to='elsinore@talk.denmark.lit' type='groupchat'>
  178. <body>Hi Alice</body>
  179. </message>
  180. <message from='elsinore@talk.denmark.lit/Hamlet' to='hamlet@denmark.lit/priam-ubuntu-vm' type='groupchat'>
  181. <body>Hi Alice</body>
  182. </message>
  183. <message from='elsinore@talk.denmark.lit/Hamlet' to='rabbithole@rooms.wonderland.lit' type='groupchat'>
  184. <body>Hi Alice</body>
  185. <fmuc xmlns="http://isode.com/protocol/fmuc" from="hamlet@denmark.lit/priam-ubuntu-vm"/>
  186. </message>
  187. <message from='rabbithole@rooms.wonderland.lit/Hamlet' to='alice@wonderland.lit/priam-ubuntu-vm' type='groupchat'>
  188. <body>Hi Alice</body>
  189. </message>
  190. ]]></example>
  191. <p>alice@wonderland.lit then replies to this message, causing a similar distribution.</p>
  192. <example caption='User on other FMUC Node replies to message'><![CDATA[
  193. <message from='alice@wonderland.lit/priam-ubuntu-vm' to='rabbithole@rooms.wonderland.lit' type='groupchat'>
  194. <body>Hi Hamlet</body>
  195. </message>
  196. <message from='rabbithole@rooms.wonderland.lit/Alice' to='alice@wonderland.lit/priam-ubuntu-vm' type='groupchat'>
  197. <body>Hi Hamlet</body>
  198. </message>
  199. <message from='rabbithole@rooms.wonderland.lit/Alice' to='elsinore@talk.denmark.lit' type='groupchat'>
  200. <body>Hi Hamlet</body>
  201. <fmuc xmlns="http://isode.com/protocol/fmuc" from="alice@wonderland.lit/priam-ubuntu-vm"/>
  202. </message>
  203. <message from='elsinore@talk.denmark.lit/Hamlet' to='hamlet@denmark.lit/priam-ubuntu-vm' type='groupchat'>
  204. <body>Hi Hamlet</body>
  205. </message>
  206. ]]></example>
  207. </section2>
  208. <section2 topic="Subsequent activity" anchor="activity">
  209. <p>Another user joining or parting a room will be "fanned-out" in much the same way - the node to which they're joined will send out their presence to all the locally joined users and to the other FMUC nodes to which it's connected, and those nodes will then do the same - noting that in master-master mode they won't distribute the stanza back to the node from which they received it.</p>
  210. <example caption='Additional user joins FMUC room'><![CDATA[
  211. <presence from="hatter@wonderland.lit/priam-ubuntu-vm" to="rabbithole@rooms.wonderland.lit/Hatter">
  212. <x xmlns="http://jabber.org/protocol/muc"/>
  213. </presence>
  214. <presence from="rabbithole@rooms.wonderland.lit/Hatter" to="alice@wonderland.lit/priam-ubuntu-vm">
  215. <x xmlns="http://jabber.org/protocol/muc#user">
  216. <item affiliation="none" role="participant" jid="hatter@wonderland.lit/priam-ubuntu-vm"/>
  217. </x>
  218. </presence>
  219. <presence from="rabbithole@rooms.wonderland.lit/Alice" to="hatter@wonderland.lit/priam-ubuntu-vm">
  220. <x xmlns="http://jabber.org/protocol/muc#user">
  221. <item affiliation="owner" role="moderator" jid="alice@wonderland.lit/priam-ubuntu-vm"/>
  222. </x>
  223. </presence>
  224. <presence from="rabbithole@rooms.wonderland.lit/Hamlet" to="hatter@wonderland.lit/priam-ubuntu-vm">
  225. <x xmlns="http://jabber.org/protocol/muc#user">
  226. <item affiliation="none" role="participant" jid="hamlet@denmark.lit/priam-ubuntu-vm"/>
  227. </x>
  228. </presence>
  229. <presence from="rabbithole@rooms.wonderland.lit/Hatter" to="hatter@wonderland.lit/priam-ubuntu-vm">
  230. <x xmlns="http://jabber.org/protocol/muc#user">
  231. <item affiliation="none" role="participant" jid="hatter@wonderland.lit/priam-ubuntu-vm"/>
  232. <status code="110"/>
  233. <status code="100"/>
  234. </x>
  235. </presence>
  236. <!--Message history sent to hatter elided for brevity -->
  237. <message from="rabbithole@rooms.wonderland.lit/Hatter" to="hatter@wonderland.lit/priam-ubuntu-vm" type="groupchat">
  238. <subject>This is the subject</subject>
  239. <x xmlns="urn:xmpp:delay" from="rabbithole@rooms.wonderland.lit" stamp="20120528T14:39:34"/>
  240. </message>
  241. <presence from='rabbithole@rooms.wonderland.lit/Hatter' to='elsinore@talk.denmark.lit/Hatter'>
  242. <fmuc xmlns='http://isode.com/protocol/fmuc' from='hatter@wonderland.lit/priam-ubuntu-vm'/>
  243. <x xmlns="http://jabber.org/protocol/muc#user">
  244. <item affiliation="none" role="participant" jid="hatter@wonderland.lit/priam-ubuntu-vm"/>
  245. </x>
  246. </presence>
  247. <presence from="elsinore@talk.denmark.lit/Hatter" to="hamlet@denmark.lit/priam-ubuntu-vm">
  248. <x xmlns="http://jabber.org/protocol/muc#user">
  249. <item affiliation="none" role="participant" jid="hatter@wonderland.lit/priam-ubuntu-vm"/>
  250. </x>
  251. </presence>
  252. ]]></example>
  253. </section2>
  254. <section2 topic="Leaving a room" anchor="part">
  255. <p>When a user leaves a room the presence is distributed in the same way.</p>
  256. <example caption='User leaves FMUC node'><![CDATA[
  257. <presence from="hatter@wonderland.lit/priam-ubuntu-vm" type="unavailable" to="rabbithole@rooms.wonderland.lit/Hatter"/>
  258. <presence from="rabbithole@rooms.wonderland.lit/Hatter" type="unavailable" to="hatter@wonderland.lit/priam-ubuntu-vm">
  259. <x xmlns="http://jabber.org/protocol/muc#user">
  260. <item affiliation="none" role="none" jid="hatter@wonderland.lit/priam-ubuntu-vm"/>
  261. <status code="110"/>
  262. </x>
  263. </presence>
  264. <presence from="rabbithole@rooms.wonderland.lit/Hatter" type="unavailable" to="alice@wonderland.lit/priam-ubuntu-vm">
  265. <x xmlns="http://jabber.org/protocol/muc#user">
  266. <item affiliation="none" role="none" jid="hatter@wonderland.lit/priam-ubuntu-vm"/>
  267. </x>
  268. </presence>
  269. <presence from='rabbithole@rooms.wonderland.lit/Hatter' to='elsinore@talk.denmark.lit/Hamlet' type='unavailable'>
  270. <x xmlns='http://jabber.org/protocol/muc#user'>
  271. <item affiliation='none' role='none' jid='hatter@wonderland.lit/priam-ubuntu-vm'/>
  272. </x>
  273. <fmuc xmlns='http://isode.com/protocol/fmuc' from='hatter@wonderland.lit/priam-ubuntu-vm'/>
  274. </presence>
  275. <presence from="elsinore@talk.denmark.lit/Hatter" type="unavailable" to="hamlet@denmark.lit/priam-ubuntu-vm">
  276. <x xmlns="http://jabber.org/protocol/muc#user">
  277. <item affiliation="none" role="none" jid="hatter@wonderland.lit/priam-ubuntu-vm"/>
  278. </x>
  279. </presence>
  280. ]]></example>
  281. <p>When the last user on a joining FMUC node leaves the room the joining node has no more users in the joined node and the joining node will be considered to have left the FMUC set. Further activity in the FMUC set not be sent to the joining node (unless it subsequently rejoins the set).</p>
  282. <p>The joined room confirms that the joining room has left the set by sending a presence stanza from the bare JID of the joined room to the bare JID of the joining room with an FMUC payload containing an element 'left'.</p>
  283. <example caption='Joined FMUC node alerts the joining node that it is no longer in the FMUC set'><![CDATA[
  284. <presence from="rabbithole@rooms.wonderland.lit" to="elsinore@talk.denmark.lit">
  285. <fmuc xmlns="http://isode.com/protocol/fmuc">
  286. <left/>
  287. </fmuc>
  288. </presence>
  289. ]]></example>
  290. </section2>
  291. <section2 topic="Administration" anchor="admin">
  292. <p>When an FMUC node receives notice that one of their users has been kicked by a moderator on another node it SHOULD kick the user and fan-out the consequent presence stanzas to other nodes.</p>
  293. <p>Role change should be distributed across nodes and fanned out to users, but only cosmetically (e.g. an owner on another node cannot effect changes to the affiliation lists on this node).</p>
  294. <!--<example caption='User joins FMUC node'><![CDATA[
  295. ]]></example>-->
  296. </section2>
  297. <section2 topic="Private Messages" anchor="pm">
  298. <p>When sending a private message to an occupant of another node, each node that receives it is responsible for routing it to the appropriate node (or the occupant, if local).</p>
  299. <example caption='User sends private message to occupant of other node'><![CDATA[
  300. <message to="elsinore@talk.denmark.lit/Alice" from="hamlet@denmark.lit/priam-ubuntu-vim" type="chat">
  301. <body>Hi, I want to say something in private</body>
  302. </message>
  303. <message to="rabbithole@rooms.wonderland.lit/Alice" from="elsinore@talk.denmark.lit/Hamlet" type="chat">
  304. <fmuc xmlns="http://isode.com/protocol/fmuc" from="hamlet@denmark.lit/priam-ubuntu-vm"/>
  305. <body>Hi, I want to say something in private</body>
  306. </message>
  307. <message to="alice@wonderland.lit/priam-ubuntu-vim" from="rabbithole@rooms.wonderland.lit/Hamlet" type="chat">
  308. <body>Hi, I want to say something in private</body>
  309. </message>
  310. ]]></example>
  311. </section2>
  312. </section1>
  313. <section1 topic='Business Rules' anchor='rules'>
  314. </section1>
  315. <!--<section1 topic='Implementation Notes' anchor='impl'>
  316. <p>OPTIONAL.</p>
  317. </section1>
  318. <section1 topic='Accessibility Considerations' anchor='access'>
  319. <p>OPTIONAL.</p>
  320. </section1>
  321. <section1 topic='Internationalization Considerations' anchor='i18n'>
  322. <p>OPTIONAL.</p>
  323. </section1>-->
  324. <section1 topic='Security Considerations' anchor='security'>
  325. <p>This allows an FMUC node to proxy for another JID, so should only be deployed in scenarios where either the FMUC nodes are trusted, or it is known that the users of an FMUC node are in the same security domain as the FMUC node itself.</p>
  326. </section1>
  327. <section1 topic='TBD' anchor='tbd'>
  328. <p>How to get the join-target to tell the joining room how much history to send during a resync.</p>
  329. <p>How to perform a resync (Part and then full rejoin)</p>
  330. <p>Illustrate master-slave mode - this is simply that the sending room waits for the echo back from the room to which it's joined before distributing messages locally.</p>
  331. <p>Describe collisions. Send fmuc payload saying there's a collision back to the node, Node with local user can then send an error message about the collision and kick them.</p>
  332. </section1>
  333. <section1 topic='IANA Considerations' anchor='iana'>
  334. <p>None.</p>
  335. </section1>
  336. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  337. <p>Needs a namespace.</p>
  338. </section1>
  339. <section1 topic='XML Schema' anchor='schema'>
  340. <p>When advanced.</p>
  341. </section1>
  342. </xep>