Re: [webrtc-pc] Initial data channel state is inconsistent

The downside brought up was:

> every user of the API would have to have an if condition in the ondatachannel event handler distinguishing between the first and all subsequent channels

But `datachannel` fires in response to receiving a "DATA_CHANNEL_OPEN" message, meaning the SCTP association is guaranteed to be established, and even the first channel could start as `open`.

I guess your proposal is better though; if you can send immediately _and_ get an event, that should make everyone happy.

GitHub Notification of comment by taylor-b
Please view or discuss this issue at using your GitHub account

Received on Tuesday, 3 April 2018 18:01:19 UTC