W3C home > Mailing lists > Public > public-secondscreen@w3.org > October 2015

[presentation-api] PresentationReceiver: rename getConnection() and getConnections()

From: Mounir Lamouri via GitHub <sysbot+gh@w3.org>
Date: Tue, 06 Oct 2015 15:05:28 +0000
To: public-secondscreen@w3.org
Message-ID: <issues.opened-110028897-1444143928-sysbot+gh@w3.org>
mounirlamouri has just created a new issue for 

== PresentationReceiver: rename getConnection() and getConnections() 
CC @avayvod @mfoltzgoogle @sicking

I have looked at the receiver side of the API fairly rarely and every 
time I am to remember that getConnection() is actually waiting for a 
connection while getConnection***s*** return the list of active 
connections. I would suggest to rename them to:
interface PresentationReceiver {
  Promise<PresentationConnection> waitForConnection();
  Promise<sequence<PresentationConnection>> connections();

I'm dubious about ```waitForConnection``` because it's basically the 
same as the ```connectionavailable``` event or did I miss the subtlety

See https://github.com/w3c/presentation-api/issues/201
Received on Tuesday, 6 October 2015 15:05:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:18:59 UTC