W3C home > Mailing lists > Public > public-webrtc-logs@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:34 +0000
To: public-webrtc-logs@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:37 UTC

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