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: ```js const dc = pc.createDataChannel('<label>') .withProtocol('<protocol>') .withMaxRetransmits(0) .build() ``` (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 accountReceived 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