simple-peer
simple-peer copied to clipboard
peer.signal() should return a promise
Since setting local or remote description is an asynchronous operation, we should probably change peer.signal()
and maybe peer.negotiate()
too to become asynchronous and return a Promise
.
This will help in case of tweaking RTCRtpSender
s after negotiation to change bitrate as a useful example. It will also match native API more closely.
Thoughts?