Re: [webrtc-pc] Initial data channel state is inconsistent

> So for the purpose of having a consistent API which always behaves the same it seems a new channel in the RTCDataChannelEvent should always start in the 'connecting' state, so that you can always setup an onopen callback, which executes always the same code no matter what the initial state of the underlying transports is/was.

I suspected this was the reasoning; makes enough sense to me.

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

Received on Friday, 9 February 2018 01:05:30 UTC