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

[webrtc-pc] Initial data channel state is inconsistent

From: Nils Ohlmeier via GitHub <sysbot+gh@w3.org>
Date: Fri, 02 Feb 2018 05:25:35 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-293777058-1517549133-sysbot+gh@w3.org>
nils-ohlmeier has just created a new issue for https://github.com/w3c/webrtc-pc:

== Initial data channel state is inconsistent ==
In section [6.2](https://w3c.github.io/webrtc-pc/#rtcdatachannel) of the spec we have the following sentence:  
"An RTCDataChannel, created with createDataChannel or dispatched via an RTCDataChannelEvent, MUST initially be in the connecting state."

But then in the [RTCDataChannelState Enumeration state](https://w3c.github.io/webrtc-pc/#dom-rtcdatachannelstate) for 'open' it says:
"This is the initial state of an RTCDataChannel object dispatched as a part of an RTCDataChannelEvent."

I'm guessing that these two sentences were written before the "underlying data transport" concept got introduced.

To me it would make the most sense if these get changed to describe that 'connecting' is the initial state if the underlying data transport is not yet connected, and 'open' should be state if the underlying data transport is connected.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1761 using your GitHub account
Received on Friday, 2 February 2018 05:25:38 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 4 February 2018 20:35:53 UTC