Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) Tighten up the definition of bufferedAmount.
git-svn-id: http://svn.whatwg.org/webapps@5049 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 15, 2010
1 parent cf3dfaa commit 715c5f1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
15 changes: 11 additions & 4 deletions complete.html
Expand Up @@ -186,7 +186,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 14 April 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 15 April 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
Expand Down Expand Up @@ -68826,9 +68826,16 @@ <h4 id=the-websocket-interface><span class=secno>10.3.2 </span>The <code><a href
</dd>

</dl><hr><p>The <dfn id=dom-websocket-bufferedamount title=dom-WebSocket-bufferedAmount><code>bufferedAmount</code></dfn>
attribute must return the number of bytes that have been queued but
not yet sent. This does not include framing overhead incurred by the
protocol. If the connection is closed, this attribute's value will
attribute must return the number of bytes of UTF-8 text that have
been queued using <code title=dom-WebSocket-send><a href=#dom-websocket-send>send()</a></code> but
that, as of the last time the <a href=#event-loop>event loop</a> started
executing a <a href=#concept-task title=concept-task>task</a>, had not yet been
transmitted to the network. (This thus includes any text sent during
the execution of the current task, regardless of whether the user
agent is able to transmit text asynchronously with script
execution.) This does not include framing overhead incurred by the
protocol, or buffering done by the operating system or network
hardware. If the connection is closed, this attribute's value will
only increase with each call to the <code title=dom-WebSocket-send><a href=#dom-websocket-send>send()</a></code> method (the number does not
reset to zero once the connection closes).</p>

Expand Down
13 changes: 10 additions & 3 deletions source
Expand Up @@ -77210,9 +77210,16 @@ interface <dfn>WebSocket</dfn> {

<p>The <dfn
title="dom-WebSocket-bufferedAmount"><code>bufferedAmount</code></dfn>
attribute must return the number of bytes that have been queued but
not yet sent. This does not include framing overhead incurred by the
protocol. If the connection is closed, this attribute's value will
attribute must return the number of bytes of UTF-8 text that have
been queued using <code title="dom-WebSocket-send">send()</code> but
that, as of the last time the <span>event loop</span> started
executing a <span title="concept-task">task</span>, had not yet been
transmitted to the network. (This thus includes any text sent during
the execution of the current task, regardless of whether the user
agent is able to transmit text asynchronously with script
execution.) This does not include framing overhead incurred by the
protocol, or buffering done by the operating system or network
hardware. If the connection is closed, this attribute's value will
only increase with each call to the <code
title="dom-WebSocket-send">send()</code> method (the number does not
reset to zero once the connection closes).</p>
Expand Down

0 comments on commit 715c5f1

Please sign in to comment.