W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > April 2018

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

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Tue, 03 Apr 2018 18:01:17 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-378341781-1522778476-sysbot+gh@w3.org>
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 https://github.com/w3c/webrtc-pc/issues/1761#issuecomment-378341781 using your GitHub account
Received on Tuesday, 3 April 2018 18:01:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:01 UTC