Re: [webrtc-pc] RTCDataChannel.send during 'closing' state

We discussed that before, see https://github.com/w3c/webrtc-pc/issues/1827#issuecomment-385131434 (but I also forgot that we had this discussion :sweat_smile:). It is unknown whether there is any application relying on that mechanism.

Another suboptimal alternative would be to say "well, `.send` can throw if the remote is closing, deal with it".

The least breaking would be to add an `onclosing` event but... I'm really reluctant to add a new event for a corner case that 99% of applications don't care about.

-- 
GitHub Notification of comment by lgrahl
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1827#issuecomment-431696533 using your GitHub account

Received on Sunday, 21 October 2018 19:24:48 UTC