W3C home > Mailing lists > Public > public-webrtc@w3.org > August 2015

Naming question to resolve: state vs. readystate vs connectionstate

From: Peter Thatcher <pthatcher@google.com>
Date: Mon, 24 Aug 2015 11:54:24 -0700
Message-ID: <CAJrXDUEFYZjMhAZNTBJ9DHWL=WB5t-NjNs2tdgKqUsm_jWOpfQ@mail.gmail.com>
To: "public-webrtc@w3.org" <public-webrtc@w3.org>
A question came up in the PR for IceTransport.DtlsTransport
https://github.com/w3c/webrtc-pc/pull/241 about the name of the "state"
attribute.  Which name should we have?


Option A (What's in there, simplest name):

IceTransport.state
IceTransport.onstatechange
DtlsTransport.state
DtlsTransport.onstatechange

Option B (Matches DataChannel, WebSocket, etc):

IceTransport.readyState
IceTransport.onreadystatechange
DtlsTransport.readyState
DtlsTransport.onreadystatechange

Options C (Matches PeerConnection.iceConnectionState):

IceTransport.connectionState
IceTransport.onconnectionstatechange
DtlsTransport.connectionState
DtlsTransport.onconnectionstatechange



My vote: state > connectionstate > readystate.

What's yours?
Received on Monday, 24 August 2015 18:55:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:45 UTC