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

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

From: Lennart Grahl via GitHub <sysbot+gh@w3.org>
Date: Thu, 05 Apr 2018 18:57:41 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-311729635-1522954660-sysbot+gh@w3.org>
lgrahl has just created a new issue for https://github.com/w3c/webrtc-pc:

== RTCDataChannel.send during 'closing' state ==
Let's look at the following scenario: Peer A and B have an `open` data channel. If peer A closes the channel, peer B's channel will go into the `closing` state until all pending messages of both peers have been sent. If peer B calls the `.send` method, it will throw an exception since the channel is not in the `open` state any more. But peer B has no way of knowing that unless it polls `.readyState`.

Do we need to address that with an... (I'm reluctant to say that) event?

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1827 using your GitHub account
Received on Thursday, 5 April 2018 18:57:45 UTC

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