Naming question to resolve: state vs. readystate vs connectionstate

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