Skip to content

Commit

Permalink
Trying to make RTCDataChannel.send behavior more clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-b committed Jun 14, 2017
1 parent 235529a commit cf37ad1
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions webrtc.html
Expand Up @@ -8894,8 +8894,8 @@ <h2>Dictionary <dfn>RTCDataChannelInit</dfn> Members</h2>
</li>
<li>
<p>If <var>channel</var>'s <a data-for=
"RTCDataChannel"><code>readyState</code></a> attribute is
<code>connecting</code>, <a>throw</a> an
"RTCDataChannel"><code>readyState</code></a> attribute is not
<code>open</code>, <a>throw</a> an
<code>InvalidStateError</code>.</p>
</li>
<li>
Expand Down Expand Up @@ -8947,10 +8947,14 @@ <h2>Dictionary <dfn>RTCDataChannelInit</dfn> Members</h2>
<a>throw</a> an <code>InvalidAccessError</code>.</p>
</li>
<li>
<p>Attempt to send <var>data</var> on <var>channel</var>'s
<a>underlying data transport</a>. If the data cannot be sent, buffer
it, and if this is not possible because the buffer is full,
<a>throw</a> an <code>OperationError</code>.</p>
<p>Queue <var>data</var> for transmission on <var>channel</var>'s
<a>underlying data transport</a>. If queuing <var>data</var> is not
possible because no more buffer space is available, <a>throw</a> an
<code>OperationError</code>.</p>
<div class="note">The actual transmission of data occurs in
parallel. If sending data leads to an SCTP-level error, the
application will be notified asynchronously through <code><a
data-link-for="RTCDataChannel">onerror</a></code>.</div>
</li>
</ol>
<div>
Expand Down

0 comments on commit cf37ad1

Please sign in to comment.