- From: Lennart Grahl via GitHub <sysbot+gh@w3.org>
- Date: Fri, 01 Jun 2018 02:05:14 +0000
- To: public-webrtc-logs@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: ```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 account
Received on Friday, 1 June 2018 02:05:16 UTC