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

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