1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00
This commit is contained in:
stpeter 2011-08-18 12:41:25 -06:00
parent 563e6c212e
commit 3be586beb3

View File

@ -30,6 +30,12 @@
<email>linuxwolf@outer-planes.net</email> <email>linuxwolf@outer-planes.net</email>
<jid>linuxwolf@outer-planes.net</jid> <jid>linuxwolf@outer-planes.net</jid>
</author> </author>
<revision>
<version>0.2</version>
<date>2011-08-18</date>
<initials>mam</initials>
<remark><p>Expanded intro with a short problem description; moved chat states considerations to their own section; tightened requirement regarding a message from different resource from MAY to SHOULD; loosened requirement regarding a message with 'gone' from MUST to SHOULD; added missing but required sections</p></remark>
</revision>
<revision> <revision>
<version>0.1</version> <version>0.1</version>
<date>2011-04-11</date> <date>2011-04-11</date>
@ -44,13 +50,14 @@
</revision> </revision>
</header> </header>
<section1 topic='Introduction' anchor='intro'> <section1 topic='Introduction' anchor='intro'>
<p>Section 5.1 of &xmppim; defines the concept of a "one-to-one chat session" and recommends that clients support the behavior described there, including:</p> <p>The goal of this specification is to provide implementation guidance for XMPP clients to improve the user experience when maintaining a chat conversation between the user and a conversee. Section 5.1 of &xmppim; defines the concept of a "one-to-one chat session" and recommends that clients support the behavior described there, including:</p>
<ol> <ol>
<li>Send the first message in a chat session to the bare JID &LOCALBARE; of the intended recipient</li> <li>Send the first message in a chat session to the bare JID &LOCALBARE; of the intended recipient</li>
<li>Send messages to the full JID &LOCALFULL; only after receiving a reply from the recipient (this is called "locking" into that full JID).</li> <li>Send messages to the full JID &LOCALFULL; only after receiving a reply from the recipient (this is called "locking" into that full JID).</li>
<li>Send messages to the bare JID again if the presence of the recipient changes in any way (this is called "unlocking" from the full JID).</li> <li>Send messages to the bare JID again if the presence of the recipient changes in any way (this is called "unlocking" from the full JID).</li>
</ol> </ol>
<p>This specification reinforces the recommendations from XMPP-IM and provides additional implementation guidance to developers of XMPP clients. It is hoped that wider deployment of clients that adhere to the advice provided here will result in an improved user experience.</p> <p>However, following only these guidelines can still lead to "disjointed" chat conversations in clients, epsecially if multiple resources are in play.</p>
<p>This specification reinforces the recommendations from XMPP-IM and provides additional implementation guidance to developers of XMPP clients.</p>
</section1> </section1>
<section1 topic='General Rules' anchor='general'> <section1 topic='General Rules' anchor='general'>
<!-- <p>TODO: simple state chart</p> --> <!-- <p>TODO: simple state chart</p> -->
@ -63,16 +70,21 @@
<section2 topic='Unlocking a Conversation' anchor='general-unlock'> <section2 topic='Unlocking a Conversation' anchor='general-unlock'>
<p>A client MUST unlock a chat session from a resource when one of the following conditions is met:</p> <p>A client MUST unlock a chat session from a resource when one of the following conditions is met:</p>
<ul> <ul>
<li>A &MESSAGE; from the same bare JID, but a different resource, is received. In this case, the client MAY lock to the new resource; or the client MAY revert to the initial state, sending any following correspondence to the conversee's bare JID.</li> <li>A &MESSAGE; from the same bare JID, but a different resource, is received. In this case, the client SHOULD lock to the new resource; or the client MAY revert to the initial state, sending any following correspondence to the conversee's bare JID.</li>
<li>A &MESSAGE; with a &lt;gone xmlns='http://jabber.org/protocol/chatstates'/&gt; chat state. In this case, the client MUST consider the conversation ended. Any further correspondence MUST be sent with a new threadID and to the bare JID.</li>
<li>any &PRESENCE; update from any resource for the conversee's bare JID, including &lt;presence type='unavailable'/&gt;. The client SHOULD revert to the initial state, sending any following correspondence to the conversee's bare JID.</li> <li>any &PRESENCE; update from any resource for the conversee's bare JID, including &lt;presence type='unavailable'/&gt;. The client SHOULD revert to the initial state, sending any following correspondence to the conversee's bare JID.</li>
</ul> </ul>
</section2> </section2>
<section2 topic='Interactions with Chat States' id='interact-csn'>
<p>If a client supports &xep0085;, then the following additional considerations apply:</p>
<ul>
<li>If a client receives a &MESSAGE; with a &lt;gone xmlns='http://jabber.org/protocol/chatstates'/&gt; chat state, it SHOULD unlock the coversation.</li>
</ul>
</section2>
</section1> </section1>
<section1 topic='User Agent Implementation Notes' anchor='impl'> <section1 topic='User Agent Implementation Notes' anchor='impl'>
<p>This section is non-normative, but provides additional guidelines for clients that interact directly with users.</p> <p>This section is non-normative, but provides additional guidelines for clients that interact directly with users.</p>
<section2 topic='User Experience Considerations' anchor='experience'> <section2 topic='User Experience Considerations' anchor='experience'>
<p>To further improve the user experience, clients are strongly encouraged to implement &xep0085; and adhere to the recommendations from &xep0201;.</p> <p>To further improve the user experience, clients are strongly encouraged to implement Chat State Notifications and adhere to the recommendations from &xep0201;.</p>
</section2> </section2>
<section2 topic='Idle Conversations' anchor='idle-chat'> <section2 topic='Idle Conversations' anchor='idle-chat'>
<p>A client MAY take into account the lack of activity of a conversation. Exactly how much inactivity constitutes an idle conversation is left to implementations to determine.</p> <p>A client MAY take into account the lack of activity of a conversation. Exactly how much inactivity constitutes an idle conversation is left to implementations to determine.</p>
@ -84,27 +96,13 @@
<p>TODO: notes on mobile clients (aggressiveness of unlocking, interactions with &xep0273;?)</p> <p>TODO: notes on mobile clients (aggressiveness of unlocking, interactions with &xep0273;?)</p>
</section2> --> </section2> -->
</section1> </section1>
<!--
<section1 topic='Business Rules' anchor='rules'>
<p>OPTIONAL.</p>
</section1>
<section1 topic='Accessibility Considerations' anchor='access'>
<p>OPTIONAL.</p>
</section1>
<section1 topic='Internationalization Considerations' anchor='i18n'>
<p>OPTIONAL.</p>
</section1>
<section1 topic='Security Considerations' anchor='security'> <section1 topic='Security Considerations' anchor='security'>
<p>REQUIRED.</p> <p>This document introduces no known security vulnerabilities.</p>
</section1> </section1>
<section1 topic='IANA Considerations' anchor='iana'> <section1 topic='IANA Considerations' anchor='iana'>
<p>REQUIRED.</p> <p>This document requires no interaction with &IANA;.</p>
</section1> </section1>
<section1 topic='XMPP Registrar Considerations' anchor='registrar'> <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
<p>REQUIRED.</p> <p>This document requires no interaction with the &REGISTRAR;.</p>
</section1> </section1>
<section1 topic='XML Schema' anchor='schema'>
<p>REQUIRED for protocol specifications.</p>
</section1>
-->
</xep> </xep>