{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/presentation-api/issues/201","labels_url":"https://api.github.com/repos/w3c/presentation-api/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/w3c/presentation-api/issues/201/comments","events_url":"https://api.github.com/repos/w3c/presentation-api/issues/201/events","html_url":"https://github.com/w3c/presentation-api/issues/201","id":110028897,"number":201,"title":"PresentationReceiver: rename getConnection() and getConnections()","user":{"login":"mounirlamouri","id":573590,"avatar_url":"https://avatars.githubusercontent.com/u/573590?v=3","gravatar_id":"","url":"https://api.github.com/users/mounirlamouri","html_url":"https://github.com/mounirlamouri","followers_url":"https://api.github.com/users/mounirlamouri/followers","following_url":"https://api.github.com/users/mounirlamouri/following{/other_user}","gists_url":"https://api.github.com/users/mounirlamouri/gists{/gist_id}","starred_url":"https://api.github.com/users/mounirlamouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mounirlamouri/subscriptions","organizations_url":"https://api.github.com/users/mounirlamouri/orgs","repos_url":"https://api.github.com/users/mounirlamouri/repos","events_url":"https://api.github.com/users/mounirlamouri/events{/privacy}","received_events_url":"https://api.github.com/users/mounirlamouri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/presentation-api/labels/P1","name":"P1","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-10-06T15:05:28Z","updated_at":"2015-10-13T23:43:26Z","closed_at":null,"body":"CC @avayvod @mfoltzgoogle @sicking\r\n\r\nI 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:\r\n```idl\r\ninterface PresentationReceiver {\r\n  Promise<PresentationConnection> waitForConnection();\r\n  Promise<sequence<PresentationConnection>> connections;\r\n  attribute EventHandler onconnectionavailable;\r\n};\r\n```\r\n\r\nI'm dubious about ```waitForConnection``` because it's basically the same as the ```connectionavailable``` event or did I miss the subtlety here?"},"comment":{"url":"https://api.github.com/repos/w3c/presentation-api/issues/comments/147885682","html_url":"https://github.com/w3c/presentation-api/issues/201#issuecomment-147885682","issue_url":"https://api.github.com/repos/w3c/presentation-api/issues/201","id":147885682,"user":{"login":"mounirlamouri","id":573590,"avatar_url":"https://avatars.githubusercontent.com/u/573590?v=3","gravatar_id":"","url":"https://api.github.com/users/mounirlamouri","html_url":"https://github.com/mounirlamouri","followers_url":"https://api.github.com/users/mounirlamouri/followers","following_url":"https://api.github.com/users/mounirlamouri/following{/other_user}","gists_url":"https://api.github.com/users/mounirlamouri/gists{/gist_id}","starred_url":"https://api.github.com/users/mounirlamouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mounirlamouri/subscriptions","organizations_url":"https://api.github.com/users/mounirlamouri/orgs","repos_url":"https://api.github.com/users/mounirlamouri/repos","events_url":"https://api.github.com/users/mounirlamouri/events{/privacy}","received_events_url":"https://api.github.com/users/mounirlamouri/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T23:43:26Z","updated_at":"2015-10-13T23:43:26Z","body":"I'm not entirely sure what you meant but I think that ```navigator.presentation.connections``` would be terribly confusing (unclear that these are the receiving connections). I don't really mind if ```PresentationConnectionList``` has a ```connections``` property or ```value```."}}