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

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

From: Lennart Grahl via GitHub <sysbot+gh@w3.org>
Date: Sun, 01 Apr 2018 20:31:17 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-377814581-1522614676-sysbot+gh@w3.org>
We do have a slight problem now: After `ondatachannel` has been fired, the channel is in a limbo state. It is technically open and nothing prevents us from sending anything **but** `.send` throws in case the channel is not open. Requiring to register `.onopen` and force waiting for that to fire is awkward.

Would it be possible to say the following:
Set `ReadyState` to `open` before firing `ondatachannel` and fire `onopen` afterwards.

GitHub Notification of comment by lgrahl
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1761#issuecomment-377814581 using your GitHub account
Received on Sunday, 1 April 2018 20:31:31 UTC

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