[webrtc-pc] RTCDataChannel.bufferedAmount description confusing

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