mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-22 07:38:52 -05:00
1.3rc1: modified implicit discovery algorithm
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@2523 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
519ec4143f
commit
92bbd1fb36
83
xep-0085.xml
83
xep-0085.xml
@ -19,7 +19,7 @@
|
|||||||
<spec>XEP-0030</spec>
|
<spec>XEP-0030</spec>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<supersedes>
|
<supersedes>
|
||||||
<spec>XEP-0022 (in part)</spec>
|
<spec>XEP-0022</spec>
|
||||||
</supersedes>
|
</supersedes>
|
||||||
<supersededby/>
|
<supersededby/>
|
||||||
<shortname>chatstates</shortname>
|
<shortname>chatstates</shortname>
|
||||||
@ -28,6 +28,12 @@
|
|||||||
</schemaloc>
|
</schemaloc>
|
||||||
&stpeter;
|
&stpeter;
|
||||||
&dizzyd;
|
&dizzyd;
|
||||||
|
<revision>
|
||||||
|
<version>1.3rc1</version>
|
||||||
|
<date>2008-11-20</date>
|
||||||
|
<initials>psa</initials>
|
||||||
|
<remark><p>.</p></remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>1.2</version>
|
<version>1.2</version>
|
||||||
<date>2006-07-12</date>
|
<date>2006-07-12</date>
|
||||||
@ -132,23 +138,23 @@
|
|||||||
</revision>
|
</revision>
|
||||||
</header>
|
</header>
|
||||||
<section1 topic='Introduction' anchor='intro'>
|
<section1 topic='Introduction' anchor='intro'>
|
||||||
<p>Many instant messaging systems include notifications about the state of one's conversation partner in a one-to-one chat (or, sometimes, in a many-to-many chat). Usually these are limited to notification that one's partner is currently typing -- e.g., the Composing event in <cite>XEP-0022</cite> (see &xep0022;). However, a composing event is essentially information about a person's participation in or involvement with the chat "session" and therefore is really a session-level state rather than a per-message event -- e.g., the Delivered and Displayed events in <cite>XEP-0022</cite>. While the composing event is interesting, the concept of a session-level state can be extended to answer a variety of questions about the participation of a person in a real-time chat conversation, such as:</p>
|
<p>Many instant messaging systems include notifications about the state of one's conversation partner in a one-to-one chat (or, sometimes, in a many-to-many chat). Usually these are limited to notification that one's partner is currently typing -- e.g., the Composing event in the older (deprecated) &xep0022; protocol. However, a composing event is essentially information about a person's participation in or involvement with the chat "session" and therefore is really a session-level state rather than a per-message event (in contrast to the Delivered and Displayed events in <cite>XEP-0022</cite>). While the composing event is interesting, the concept of a session-level state can be extended to answer a variety of questions about the participation of a person in a real-time chat conversation, such as:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Has this person paused the composition?</li>
|
<li>Has this person paused the composition?</li>
|
||||||
<li>Is this person actively paying attention to the chat?</li>
|
<li>Is this person actively paying attention to the chat?</li>
|
||||||
<li>Is this person temporarily inactive (i.e., not paying attention right now)?</li>
|
<li>Is this person temporarily inactive (i.e., not paying attention right now)?</li>
|
||||||
<li>Is this person simply gone (i.e., no longer participating in the chat)?</li>
|
<li>Is this person simply gone (i.e., no longer participating in the chat)?</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>To answer such questions, this document supplements the traditional composing state by defining four additional chat states (paused, active, inactive, gone), for a total of five states that (it is hoped) together fully describe the possible states of a person's participation in or involvement with a chat conversation. <note>These states do not necessarily refer to the state of the client interface and certainly not to the disposition of a particular message. However, the user's involvement with the system, device, chat interface, or input interface can provide important clues regarding the user's involvement with the chat session, which should be used by the client in determining when to generate chat state notifications.</note></p>
|
<p>To answer such questions, this document supplements the traditional composing state by defining four additional chat states (paused, active, inactive, gone), for a total of five states that (it is hoped) together fully describe the possible states of a person's participation in or involvement with a chat conversation. <note>These states do not necessarily refer to the state of the client interface and certainly not to the disposition of a particular message. However, the user's involvement with the system, device, chat session interface, or input interface can provide important clues regarding the user's involvement with the chat session; these clues can be used by the client in determining when to generate chat state notifications.</note></p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Definitions' anchor='definitions'>
|
<section1 topic='Definitions' anchor='definitions'>
|
||||||
<p>In essence, chat state notifications can be thought of as a form of chat-specific presence. For example, consider what might happen if a user "loses" a chat window on his desktop; the user might still be interacting with his messaging client (thus never automatically changing his basic presence to "away"), but the user's state with regard to the chat session might change progressively from active to inactive to gone. This information would help the user's conversation partner understand why she has not received a response to her messages in the chat session.</p>
|
<p>In essence, chat state notifications can be thought of as a form of chat-specific presence. For example, consider what might happen if a user "loses" a chat window on his desktop; the user might still be interacting with his messaging client (thus never automatically changing his basic presence to "away"), but the user's state with regard to the chat session might change progressively from active to inactive to gone. This information would help the user's conversation partner understand why she has not received a response to her messages in the chat session.</p>
|
||||||
<p>Chat state notifications can appear in two kinds of &MESSAGE; stanzas:</p>
|
<p>Chat state notifications can appear in two kinds of &MESSAGE; stanzas:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>A "content message" -- that is, a message stanza that contains standard messaging content such as the <body/>, <subject/>, and <thread/> child elements defined in &xmppim; and/or any other properly-namespaced child element(s).</li>
|
<li>A "content message" -- that is, a message stanza whose primary meaning is contained in standard messaging content such as the XMPP <body/> or any other properly-namespaced child element(s) other than those defined for chat state notifications in this specification.</li>
|
||||||
<li>A "standalone notification" -- that is, a message stanza that does not contain standard messaging content but instead is intended to specify only the chat state since it contains only a child element qualified by the "http://jabber.org/protocol/chatstates" namespace (or possibly also the XMPP <thread/> element; see the <link url='#bizrules-threads'>Threads</link> section below).</li>
|
<li>A "standalone notification" -- that is, a message stanza that does not contain standard messaging content but instead is intended to specify only the chat state since it contains only a child element qualified by the "http://jabber.org/protocol/chatstates" namespace (or possibly also the XMPP <thread/> element; see the <link url='#bizrules-threads'>Threads</link> section below).</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>The five chat states specified in this document are described below. The suggested triggers and state changes are simply that: suggestions. It is up to the implementation to determine when to generate chat state notifications and which notifications to generate.</p>
|
<p>The five chat states specified in this document are described below. The suggested triggers and state changes are simply that: <em>suggestions</em>. It is up to the implementation to determine when to generate chat state notifications and which notifications to generate.</p>
|
||||||
<table caption='Chat States'>
|
<table caption='Chat States'>
|
||||||
<tr>
|
<tr>
|
||||||
<th>State</th>
|
<th>State</th>
|
||||||
@ -159,7 +165,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><active/></td>
|
<td><active/></td>
|
||||||
<td>User is actively participating in the chat session.</td>
|
<td>User is actively participating in the chat session.</td>
|
||||||
<td>User accepts an initial content message, sends a content message, gives focus to the chat interface, or is otherwise paying attention to the conversation.</td>
|
<td>User accepts an initial content message, sends a content message, gives focus to the chat session interface, or is otherwise paying attention to the conversation.</td>
|
||||||
<td><inactive/>, <composing/></td>
|
<td><inactive/>, <composing/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -171,19 +177,19 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><paused/></td>
|
<td><paused/></td>
|
||||||
<td>User had been composing but now has stopped.</td>
|
<td>User had been composing but now has stopped.</td>
|
||||||
<td>User was composing but has not interacted with the message input interface for a short period of time (e.g., 5 seconds). <note>An implementation may also "guess" that composing has been paused based on a change in the user's interaction with the message input interface, e.g. if the user switches window or application focus.</note></td>
|
<td>User was composing but has not interacted with the message input interface for a short period of time (e.g., 5 seconds). <note>An implementation could also "guess" that composing has been paused based on a change in the user's interaction with the message input interface, e.g. if the user switches window or application focus.</note></td>
|
||||||
<td><active/>, <composing/>, <inactive/></td>
|
<td><active/>, <composing/>, <inactive/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><inactive/></td>
|
<td><inactive/></td>
|
||||||
<td>User has not been actively participating in the chat session.</td>
|
<td>User has not been actively participating in the chat session.</td>
|
||||||
<td>User has not interacted with the chat interface for an intermediate period of time (e.g., 30 seconds).</td>
|
<td>User has not interacted with the chat session interface for an intermediate period of time (e.g., 30 seconds).</td>
|
||||||
<td><active/>, <paused/>, <gone/></td>
|
<td><active/>, <paused/>, <gone/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><gone/></td>
|
<td><gone/></td>
|
||||||
<td>User has effectively ended their participation in the chat session.</td>
|
<td>User has effectively ended their participation in the chat session.</td>
|
||||||
<td>User has not interacted with the chat interface, system, or device for a relatively long period of time (e.g., 2 minutes), or has terminated the chat interface (e.g., by closing the chat window).</td>
|
<td>User has not interacted with the chat session interface, system, or device for a relatively long period of time (e.g., 2 minutes), or has terminated the chat session interface (e.g., by closing the chat window).</td>
|
||||||
<td><active/></td>
|
<td><active/></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -202,37 +208,36 @@ INACTIVE <--> ACTIVE <--> COMPOSING
|
|||||||
]]></code>
|
]]></code>
|
||||||
<p>Note: All four of the states shown can transition to the GONE state.</p>
|
<p>Note: All four of the states shown can transition to the GONE state.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Discovering Support' anchor='disco'>
|
<section1 topic='Determining Support' anchor='support'>
|
||||||
<p>If an entity supports the Chat State Notifications protocol, it MUST advertise that fact in its responses to &xep0030; information ("disco#info") requests by returning a feature of "http://jabber.org/protocol/chatstates":</p>
|
<p>If an entity supports the Chat State Notifications protocol, it MUST advertise that fact in its responses to &xep0030; information ("disco#info") requests by returning a feature of "http://jabber.org/protocol/chatstates":</p>
|
||||||
<example caption='A disco#info query'><![CDATA[
|
<example caption='A disco#info query'><![CDATA[
|
||||||
<iq type='get'
|
<iq from='romeo@shakespeare.lit/orchard'
|
||||||
from='romeo@shakespeare.lit/orchard'
|
id='disco1'
|
||||||
to='juliet@capulet.com/balcony'
|
to='juliet@capulet.com/balcony'
|
||||||
id='disco1'>
|
type='get'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption='A disco#info response'><![CDATA[
|
<example caption='A disco#info response'><![CDATA[
|
||||||
<iq type='result'
|
<iq from='juliet@capulet.com/balcony'
|
||||||
from='juliet@capulet.com/balcony'
|
id='disco1'
|
||||||
to='romeo@shakespeare.lit/orchard'
|
to='romeo@shakespeare.lit/orchard'
|
||||||
id='disco1'>
|
type='result'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'>
|
<query xmlns='http://jabber.org/protocol/disco#info'>
|
||||||
<feature var='http://jabber.org/protocol/chatstates'/>
|
<feature var='http://jabber.org/protocol/chatstates'/>
|
||||||
</query>
|
</query>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>In addition, support for the Chat States Notification protocol can be determined through the dynamic profile of Service Discovery defined in &xep0115;.</p>
|
<p>In order for an application to determine whether an entity supports this protocol, where possible it SHOULD use the dynamic, presence-based profile of service discovery defined in &xep0115;. However, if an application has not received entity capabilities information from an entity, it SHOULD use explicit service discovery instead.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Business Rules' anchor='bizrules'>
|
<section1 topic='Business Rules' anchor='bizrules'>
|
||||||
<section2 topic='Generation of Notifications' anchor='bizrules-gen'>
|
<section2 topic='Generation of Notifications' anchor='bizrules-gen'>
|
||||||
<p>Before generating chat state notifications, a User SHOULD explicitly discover whether the Contact supports the protocol defined herein (as described in the <link url='#disco'>Discovering Support</link> section of this document) or explicitly negotiate the use of chat state notifications with the Contact (via &xep0155;).</p>
|
<p>Before generating chat state notifications, a User SHOULD explicitly discover whether the Contact supports the protocol defined herein (as described in the <link url='#disco'>Discovering Support</link> section of this document) or explicitly negotiate the use of chat state notifications with the Contact (e.g., via &xep0155;).</p>
|
||||||
<p>In the absence of explicit discovery or negotiation, the User MAY implicitly request and discover the use of chat state notifications in a one-to-one chat session by adhering to the following business rules:</p>
|
<p>In the absence of explicit discovery or negotiation, the User MAY implicitly request and discover the use of chat state notifications in a one-to-one chat session by adhering to the following business rules:</p>
|
||||||
<ol start='1'>
|
<ol start='1'>
|
||||||
<li>If the User desires chat state notifications, the initial content message sent to the Contact MUST contain a chat state notification extension, which SHOULD be <active/>.</li>
|
<li>If the User desires chat state notifications, the message(s) that it sends to the Contact before receiving a reply MUST contain a chat state notification extension, which SHOULD be <active/>.</li>
|
||||||
<li>Until receiving a reply to the initial content message (or a standalone notification) from the Contact, the User MUST NOT send subsequent chat state notifications to the Contact.</li>
|
<li>If the Contact replies but does not include a chat state notification extension, the User MUST NOT send subsequent chat state notifications to the Contact.</li>
|
||||||
<li>If the Contact replies to the initial content message but does not include a chat state notification extension, the User MUST NOT send subsequent chat state notifications to the Contact.</li>
|
<li>If the Contact replies and includes an <active/> notification (or sends a standalone notification to the User), the User and Contact SHOULD send subsequent notifications for supported chat states (as specified in the next subsection) by including an <active/> notification in each content message and sending standalone notifications for the chat states they support (at a minimum, the <composing/> state).</li>
|
||||||
<li>If the Contact replies to the initial content message and includes an <active/> notification (or sends a standalone notification to the User), the User and Contact SHOULD send subsequent notifications for supported chat states (as specified in the next subsection) by including an <active/> notification in each content message and sending standalone notifications for the chat states they support (at a minimum, the <composing/> state).</li>
|
|
||||||
</ol>
|
</ol>
|
||||||
<p>The foregoing rules imply that the sending of chat state notifications is bidirectional (i.e., both User and Contact will either send or not send chat state notifications) rather than unidirectional (i.e., one of the conversation partners will send chat state notifications but the other will not); this is by design.</p>
|
<p>The foregoing rules imply that the sending of chat state notifications is bidirectional (i.e., both User and Contact will either send or not send chat state notifications) rather than unidirectional (i.e., one of the conversation partners will send chat state notifications but the other will not); this is by design.</p>
|
||||||
</section2>
|
</section2>
|
||||||
@ -263,7 +268,7 @@ INACTIVE <--> ACTIVE <--> COMPOSING
|
|||||||
<td>SHOULD</td>
|
<td>SHOULD</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<p>A client MUST allow the user to configure whether he or she wants to send chat state notifications.</p>
|
<p>A client MUST allow users to configure whether they want to send chat state notifications.</p>
|
||||||
<p>Note: Support for only <active/> and <composing/> is functionally equivalent to supporting the Composing event from <cite>XEP-0022</cite>.</p>
|
<p>Note: Support for only <active/> and <composing/> is functionally equivalent to supporting the Composing event from <cite>XEP-0022</cite>.</p>
|
||||||
</section2>
|
</section2>
|
||||||
<section2 topic='Repetition' anchor='bizrules-rep'>
|
<section2 topic='Repetition' anchor='bizrules-rep'>
|
||||||
@ -274,7 +279,7 @@ INACTIVE <--> ACTIVE <--> COMPOSING
|
|||||||
<li>This protocol MUST NOT be used with stanzas other than &MESSAGE;.</li>
|
<li>This protocol MUST NOT be used with stanzas other than &MESSAGE;.</li>
|
||||||
<li>This protocol SHOULD NOT be used with message types other than "chat" or "groupchat".</li>
|
<li>This protocol SHOULD NOT be used with message types other than "chat" or "groupchat".</li>
|
||||||
<li>The 'type' attribute for content messages and standalone notifications SHOULD be set to a value of "chat" (for one-to-one sessions) or "groupchat" (for many-to-many sessions).</li>
|
<li>The 'type' attribute for content messages and standalone notifications SHOULD be set to a value of "chat" (for one-to-one sessions) or "groupchat" (for many-to-many sessions).</li>
|
||||||
<li>A chat session MAY span multiple user sessions (i.e., chat state is orthogonal to the availability and presence of one's conversation partner), although this is unlikely given the suggested timing of event triggers.</li>
|
<li>A chat session MAY span multiple user sessions (i.e., chat state is orthogonal to the presence of one's conversation partner), although this is unlikely given the suggested timing of event triggers.</li>
|
||||||
</ol>
|
</ol>
|
||||||
</section2>
|
</section2>
|
||||||
<section2 topic='Use in Groupchat' anchor='bizrules-groupchat'>
|
<section2 topic='Use in Groupchat' anchor='bizrules-groupchat'>
|
||||||
@ -284,17 +289,17 @@ INACTIVE <--> ACTIVE <--> COMPOSING
|
|||||||
<li>A client SHOULD NOT generate <gone/> notifications.</li>
|
<li>A client SHOULD NOT generate <gone/> notifications.</li>
|
||||||
<li>A client SHOULD ignore <gone/> notifications received from other room occupants.</li>
|
<li>A client SHOULD ignore <gone/> notifications received from other room occupants.</li>
|
||||||
</ol>
|
</ol>
|
||||||
<p>Note: Use of chat state notifications in the context of groupchat may result in multicasting of such notifications. Forewarned is forearmed.</p>
|
<p>Note: Use of chat state notifications in the context of groupchat can result in multicasting of such notifications. Forewarned is forearmed.</p>
|
||||||
</section2>
|
</section2>
|
||||||
<section2 topic='Syntax of Notifications' anchor='bizrules-syntax'>
|
<section2 topic='Syntax of Notifications' anchor='bizrules-syntax'>
|
||||||
<ol>
|
<ol>
|
||||||
<li>A message stanza MUST NOT contain more than one child element qualified by the 'http://jabber.org/protocol/chatstates' namespace.</li>
|
<li>A message stanza MUST NOT contain more than one child element qualified by the 'http://jabber.org/protocol/chatstates' namespace.</li>
|
||||||
<li>A message stanza that contains standard messaging content -- i.e., the <body/>, <subject/>, and <thread/> child elements defined in &xmppim; and/or any other properly-namespaced child element(s) -- SHOULD NOT contain a chat state notification extension other than <active/>.</li>
|
<li>A message stanza that contains standard instant messaging content SHOULD NOT contain a chat state notification extension other than <active/>, where "standard instant messaging content" is taken to mean the <body/>, <subject/>, and <thread/> child elements defined in &xmppim; or any other child element that would lead the recipient to treat the stanza as an instant message as explained in &xep0226;.</li>
|
||||||
<li>A message stanza that does not contain standard messaging content and is intended to specify only the chat state MUST NOT contain any child elements other than the chat state notification extension, which SHOULD be a state other than <active/>; however, if threads are used (see below) then the standalone notification MUST also contain the <thread/> element.</li>
|
<li>A message stanza that does not contain standard messaging content and is intended to specify only the chat state MUST NOT contain any child elements other than the chat state notification extension, which SHOULD be a state other than <active/>; however, if threads are used (see below) then the standalone notification MUST also contain the <thread/> element.</li>
|
||||||
</ol>
|
</ol>
|
||||||
</section2>
|
</section2>
|
||||||
<section2 topic='Threads' anchor='bizrules-threads'>
|
<section2 topic='Threads' anchor='bizrules-threads'>
|
||||||
<p>While chat state notifications provide a mechanism for managing chat threads (i.e., the <thread/> element), support for threads is OPTIONAL. However, if all of the clients participating in a chat both support and use threads, the following additional business rules apply:</p>
|
<p>While chat state notifications provide a mechanism for managing chat threads as communicated by inclusion of the XMPP <thread/> element, support for threads is OPTIONAL (for further information about threads, refer to &xep0201;). However, if all of the clients participating in a chat both support and use threads, the following additional business rules apply:</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Clients MUST copy back Thread IDs (i.e., the value of the <thread/> element) in any replies.</li>
|
<li>Clients MUST copy back Thread IDs (i.e., the value of the <thread/> element) in any replies.</li>
|
||||||
<li>When a client terminates a one-to-one chat session (e.g., when a user closes the chat session interface), it MUST generate a <gone/> event.</li>
|
<li>When a client terminates a one-to-one chat session (e.g., when a user closes the chat session interface), it MUST generate a <gone/> event.</li>
|
||||||
@ -306,7 +311,7 @@ INACTIVE <--> ACTIVE <--> COMPOSING
|
|||||||
</section2>
|
</section2>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='A Simple Example' anchor='example-basic'>
|
<section1 topic='A Simple Example' anchor='example-basic'>
|
||||||
<p>In the following conversation, both User and Contact support chat state notifications.</p>
|
<p>In the following conversation, both User <bernardo@shakespeare.lit> and Contact <francisco@shakespeare.lit> support chat state notifications.</p>
|
||||||
<example caption="User Sends Initial Content Message With <active/> Notification"><![CDATA[
|
<example caption="User Sends Initial Content Message With <active/> Notification"><![CDATA[
|
||||||
<message
|
<message
|
||||||
from='bernardo@shakespeare.lit/pda'
|
from='bernardo@shakespeare.lit/pda'
|
||||||
@ -346,7 +351,7 @@ INACTIVE <--> ACTIVE <--> COMPOSING
|
|||||||
<p>And so forth.</p>
|
<p>And so forth.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='A Detailed Conversation' anchor='example-detail'>
|
<section1 topic='A Detailed Conversation' anchor='example-detail'>
|
||||||
<p>The following conversation flow illustrates in more detail the workings of chat state notifications (in this case also using threads).</p>
|
<p>The following conversation flow illustrates in more detail the workings of chat state notifications (in this case also using threads) between a User <romeo@shakespeare.lit> and a Contact <juliet@capulet.com>.</p>
|
||||||
<example caption="User Sends Initial Content Message"><![CDATA[
|
<example caption="User Sends Initial Content Message"><![CDATA[
|
||||||
<message
|
<message
|
||||||
from='romeo@shakespeare.lit/orchard'
|
from='romeo@shakespeare.lit/orchard'
|
||||||
@ -361,7 +366,7 @@ INACTIVE <--> ACTIVE <--> COMPOSING
|
|||||||
<active xmlns='http://jabber.org/protocol/chatstates'/>
|
<active xmlns='http://jabber.org/protocol/chatstates'/>
|
||||||
</message>
|
</message>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>At this point Juliet's client knows that Romeo's client supports chat state notifications. Thus she replies to the initial content message and her client includes a notification that her state is <active/>:</p>
|
<p>At this point Juliet's client knows that Romeo's client supports chat state notifications. Thus she replies to the content message and her client includes a notification that her state is <active/>:</p>
|
||||||
<example caption="Contact's Client Sends Content Message Reply With <active/> Notification"><![CDATA[
|
<example caption="Contact's Client Sends Content Message Reply With <active/> Notification"><![CDATA[
|
||||||
<message
|
<message
|
||||||
from='juliet@capulet.com/balcony'
|
from='juliet@capulet.com/balcony'
|
||||||
@ -375,7 +380,17 @@ INACTIVE <--> ACTIVE <--> COMPOSING
|
|||||||
<active xmlns='http://jabber.org/protocol/chatstates'/>
|
<active xmlns='http://jabber.org/protocol/chatstates'/>
|
||||||
</message>
|
</message>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>And so the conversation continues. After a while, Juliet asks a question that brings Romeo up short. Romeo begins composing a reply to Juliet's heartfelt question, and his Jabber client notifies Juliet that he is composing a reply.</p>
|
<p>And so the conversation continues. After a while, Juliet asks a question that brings Romeo up short:</p>
|
||||||
|
<example caption="Contact Sends Another Message"><![CDATA[
|
||||||
|
<message
|
||||||
|
from='juliet@capulet.com/balcony'
|
||||||
|
to='romeo@shakespeare.lit/orchard'
|
||||||
|
type='chat'>
|
||||||
|
<thread>act2scene2chat1</thread>
|
||||||
|
<body>Art thou not Romeo, and a Montague?</body>
|
||||||
|
</message>
|
||||||
|
]]></example>
|
||||||
|
<p>Romeo begins composing a reply to Juliet's heartfelt question, and his client notifies Juliet that he is composing a reply.</p>
|
||||||
<example caption="User's Client Sends Standalone <composing/> Notification"><![CDATA[
|
<example caption="User's Client Sends Standalone <composing/> Notification"><![CDATA[
|
||||||
<message
|
<message
|
||||||
from='romeo@montague.net/orchard'
|
from='romeo@montague.net/orchard'
|
||||||
@ -385,7 +400,7 @@ INACTIVE <--> ACTIVE <--> COMPOSING
|
|||||||
<composing xmlns='http://jabber.org/protocol/chatstates'/>
|
<composing xmlns='http://jabber.org/protocol/chatstates'/>
|
||||||
</message>
|
</message>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>Romeo realizes his reply is too rash and pauses to choose the right words; after some (configurable) time period, his Jabber client senses the delay and sends a state of <paused/>.</p>
|
<p>Romeo realizes his reply is too rash and pauses to choose the right words; after some (configurable) time period, his client senses the delay and sends a state of <paused/>.</p>
|
||||||
<example caption="User's Client Sends Standalone <paused/> Notification"><![CDATA[
|
<example caption="User's Client Sends Standalone <paused/> Notification"><![CDATA[
|
||||||
<message
|
<message
|
||||||
from='romeo@montague.net/orchard'
|
from='romeo@montague.net/orchard'
|
||||||
@ -506,10 +521,10 @@ INACTIVE <--> ACTIVE <--> COMPOSING
|
|||||||
<p>My, these star-crossed lovers do go on, don't they?</p>
|
<p>My, these star-crossed lovers do go on, don't they?</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Implementation Notes' anchor='impl'>
|
<section1 topic='Implementation Notes' anchor='impl'>
|
||||||
<p>A client that receives a chat state notification should expect that it may never receive another message or chat state notification from the other entity (e.g., because the other entity crashes or goes offline) and should plan accordingly.</p>
|
<p>A client that receives a chat state notification might never receive another message or chat state notification from the other entity (e.g., because the other entity crashes or goes offline) and needs to plan accordingly.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Security Considerations' anchor='security'>
|
<section1 topic='Security Considerations' anchor='security'>
|
||||||
<p>The states of a chat thread may reveal information about a user's interaction with his or her computer, including his or her physical presence; such information SHOULD NOT be revealed to conversation partners who are not trusted to know such information. Client implementations MUST provide a mechanism that enables the user to disable chat state notifications if desired.</p>
|
<p>The states of a chat thread can reveal information about a user's interaction with his or her computer, including his or her physical presence; such information SHOULD NOT be revealed to conversation partners who are not trusted to know such information. Client implementations MUST provide a mechanism that enables the user to disable chat state notifications if desired.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='IANA Considerations' anchor='iana'>
|
<section1 topic='IANA Considerations' anchor='iana'>
|
||||||
<p>This document requires no interaction with &IANA;.</p>
|
<p>This document requires no interaction with &IANA;.</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user