Execeptions for createDataChannel method

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