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

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