[ortc] Sender.setTransport a promise due to async issues?

robin-raymond has just created a new issue for 
https://github.com/w3c/ortc:

== Sender.setTransport a promise due to async issues? ==

It's possible that the transport passed into `sender.setTransport` 
dies just moments before the `setTransport` is called unknown to the 
app developer (e.g. DTLS asynchronously failed to negotiate). Thus the
 `setTransport` would throw an exception because the passed in 
`transport` is dead. The programmer would NOT have received the 
`transport` state change and thus would be unaware anything went wrong
 in advance and could not substitute an alternative transport before 
the promise is fulfilled upon receiving the state change event (and 
thus disregard any setTransport exceptions due to failed states that 
are not relevant).


Please view or discuss this issue at 
https://github.com/w3c/ortc/issues/598 using your GitHub account

Received on Friday, 9 September 2016 23:42:15 UTC