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

Re: [webrtc-pc] RTCDataChannelInit unknown member handling

From: Lennart Grahl via GitHub <sysbot+gh@w3.org>
Date: Fri, 01 Jun 2018 02:05:14 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-393736469-1527818713-sysbot+gh@w3.org>
I feared this might be the case. As a proposal for future APIs, we could apply the builder pattern which is more explicit and would allow for exceptions as well as testing whether the feature exists:

const dc = pc.createDataChannel('<label>')

(I'm not proposing this for `createDataChannel` atm since it would of course break the API.)

GitHub Notification of comment by lgrahl
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1882#issuecomment-393736469 using your GitHub account
Received on Friday, 1 June 2018 02:05:16 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:44 UTC