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

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

From: Jackson Haenchen via GitHub <sysbot+gh@w3.org>
Date: Sun, 21 Oct 2018 19:27:12 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-431696722-1540150031-sysbot+gh@w3.org>
I use the onclose event to discern if I should reinitiate a connection. If a connection fails and the onclose event doesn’t fire, the only way I can tell is to monitor the ice connection state for a particular state which seems more brittle than relying on an event. 

And it seems that onclose may not fire for user-initiated events either? I’m struggling to understand how best to utilize this event handler. 

GitHub Notification of comment by jhaenchen
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1827#issuecomment-431696722 using your GitHub account
Received on Sunday, 21 October 2018 19:27:13 UTC

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