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

@avayvod and I talked to @jakearchibald and we came up with this 
proposition:
```idl
interface PresentationReceiver {
  Promise<> ready;
  sequence<PresentationConnection> connections;
  attribute EventHandler onconnectionavailable;
};
```

It made me wonder why we couldn't simply do:
```idl
interface PresentationReceiver {
  sequence<PresentationConnection> connections;
  attribute EventHandler onconnectionavailable;
};
```

It seems that if we accept that ```connections``` can be returned 
synchronously and the event will be fired when there is a new 
connection, pages could have code like:
```js
function handshake(c) {
   // ...
}

function onloadhandler() {
  navigator.presentation.receiver.onconnectionavailable = handshake;
  navigator.presentation.receiver.connections.forEach(handshake);
}
```

WDYT?

-- 
GitHub Notif of comment by mounirlamouri
See 
https://github.com/w3c/presentation-api/issues/201#issuecomment-145918011

Received on Tuesday, 6 October 2015 16:22:28 UTC