simple-peer icon indicating copy to clipboard operation
simple-peer copied to clipboard

peer.signal() should return a promise

Open nazar-pc opened this issue 4 years ago • 0 comments

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 RTCRtpSenders after negotiation to change bitrate as a useful example. It will also match native API more closely.

Thoughts?

nazar-pc avatar Feb 17 '20 17:02 nazar-pc