W3C home > Mailing lists > Public > public-webrtc@w3.org > January 2015

Execeptions for createDataChannel method

From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Date: Thu, 15 Jan 2015 11:31:23 +0100
Message-Id: <FCC3D438-2ABD-4271-9471-2A5AFB609F5F@lurchi.franken.de>
To: public-webrtc <public-webrtc@w3.org>
Dear all,

shouldn't the createDataChannel method thrown an error if the label parameter
is too long? In the case where negotiated is false, the limit is 65535 bytes
when the string is UTF-8 encoded. Shouldn't the same apply to the protocol
field?

The reason for the limits is that the protocol used for doing the inband negotiation
specified in
https://tools.ietf.org/html/draft-ietf-rtcweb-data-protocol-09
has these limits.

I think the specification should specify that in these case an error is thrown and also
which one.

Best regards
Michael
Received on Thursday, 15 January 2015 10:31:49 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:42 UTC