You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sample, while functionally correct, doesn't actually look for the type "answer" on the SDP; instead, it assumes that anything that's not an "offer" is an "answer". While this may or may not be true in the context of this specific example, it makes the example unclear -- it took me a while, I'm afraid, to realize that these two lines were in fact handling the "answer":
The sample, while functionally correct, doesn't actually look for the type "answer" on the SDP; instead, it assumes that anything that's not an "offer" is an "answer". While this may or may not be true in the context of this specific example, it makes the example unclear -- it took me a while, I'm afraid, to realize that these two lines were in fact handling the "answer":
I propose changing this to:
This would make the example easier and faster to comprehend and actually makes the entire onmessage handler much more obvious.
The text was updated successfully, but these errors were encountered: