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

I think the best think the spec could say is that the code above has 
an undefined behaviour. Maybe the connection will be set, maybe not. 
The code is clearly wrong, assuming that ```connections``` has one 
element which might not be the case obviously. What should be done is 
to try to use the current connections and listen for new ones, don't 
you think?

Regarding synchronous-ity, my understanding is that the main process 
will notify the child process that a connection was created. Having a 
synchronous array with an event should make the design implementatable
 in that case. I'm not sure what situation would make the synchronous 
array not implementation.

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

Received on Tuesday, 6 October 2015 20:58:32 UTC