W3C home > Mailing lists > Public > public-webrtc@w3.org > October 2016

[webrtc-pc] Pull Request: Specify how to handle invalid data channel IDs, or lack of IDs.

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Sat, 01 Oct 2016 00:44:07 +0000
To: public-webrtc@w3.org
Message-ID: <pull_request.opened-87585477-1475282646-sysbot+gh@w3.org>
taylor-b has just submitted a new pull request for 
https://github.com/w3c/webrtc-pc:

== Specify how to handle invalid data channel IDs, or lack of IDs. ==
Fixes issue #746.

For an ID of 65535, createDataChannel will throw an exception. If
it's determined that an ID is invalid for any other reason (such as
shortage of negotiated SCTP streams), or if no more valid IDs are
available when the user agent tries to pick an ID, the data channel 
will
fire an "error" event and be closed.

For now, I'm leaving the actual error as a "NetworkError", since I
think we need to separately decide how error events on data channels
work (see issue #846).

See https://github.com/w3c/webrtc-pc/pull/847
Received on Saturday, 1 October 2016 00:44:15 UTC

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