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

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

From: Lennart Grahl via GitHub <sysbot+gh@w3.org>
Date: Sun, 21 Oct 2018 19:24:47 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-431696533-1540149886-sysbot+gh@w3.org>
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

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