simple-peer
simple-peer copied to clipboard
`replaceTrack` should return a Promise
According to the specs, sender.replaceTrack should return a Promise which will resolve when track replacement has finished.
SimplePeer, on the contrary, returns void which makes it harder to await track replacement completion.
This one is similar to #593, most APIs should actually return values and be async to allow for advanced use cases.