W3C home > Mailing lists > Public > public-webrtc@w3.org > December 2017

[webrtc-pc] RTCDataChannel.bufferedAmount description confusing

From: Lennart Grahl via GitHub <sysbot+gh@w3.org>
Date: Tue, 05 Dec 2017 16:53:34 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-279449967-1512492811-sysbot+gh@w3.org>
lgrahl has just created a new issue for https://github.com/w3c/webrtc-pc:

== RTCDataChannel.bufferedAmount description confusing ==
I don't understand the following description of `RTCDataChannel.bufferedAmount`:

> [...] If the channel is closed, this attribute's value will only increase with each call to the send() method (the attribute does not reset to zero once the channel closes).

Let me go through that:

> If the channel is closed [...]

So, the channel is closed already.

> [...] this attribute's value will only increase with each call to the send() method [...]

That doesn't make any sense to me as the channel is already closed. Sending in a non-open state will result in an exception being thrown.

> (the attribute does not reset to zero once the channel closes)

Fine.

---

If I understand correctly, this is what it should say:

> [...] This attribute's value will only increase with each call to the send() method as long as the channel is in the `open` state. However, the attribute does not reset to zero once the channel closes.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1680 using your GitHub account
Received on Tuesday, 5 December 2017 16:53:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 5 December 2017 16:53:36 UTC