W3C home > Mailing lists > Public > public-webrtc@w3.org > April 2018

[webrtc-pc] RTCDataChannel.send steps

From: Lennart Grahl via GitHub <sysbot+gh@w3.org>
Date: Mon, 02 Apr 2018 18:32:15 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-310566140-1522693930-sysbot+gh@w3.org>
lgrahl has just created a new issue for https://github.com/w3c/webrtc-pc:

== RTCDataChannel.send steps ==
Step 3 states:

> Let data be a byte buffer that represents the result of encoding the method's argument as UTF-8 and increase the value of the [[BufferedAmount]] slot with the length of data.

But step 4 raises TypeError in case the message is too large to be sent (> maxMessageSize). So, [[BufferedAmount]] should not be increased before that.


Two more things:

* Step 4 should explicitly mention that *size of data* means the size in bytes.
* A typo in two places: *slot with **the the** length*.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1824 using your GitHub account
Received on Monday, 2 April 2018 18:32:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:39 UTC