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
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
I was wondering how to ensure OnOpen is registered correctly when creating a new RTCDataChannel using in-band negotiation. It seems this would look as follows:
// Create the data channel objectvarchannel=newRTCDataChannel(sctp,parameters);// Register OnOpenchannel.onopen=()=>handleOnOpen(channel);
If I understand correctly new RTCDataChannel will instantly start off the in-band negotiation. Therefore the registering of the onopen callback seems chronologically out of order. It seems there would be a (arguably tiny) change onopen would be called before the callback is correctly registered. Is this supposed to be handled in some way?
I was wondering how to ensure
OnOpenis registered correctly when creating anew RTCDataChannelusing in-band negotiation. It seems this would look as follows:If I understand correctly
new RTCDataChannelwill instantly start off the in-band negotiation. Therefore the registering of theonopencallback seems chronologically out of order. It seems there would be a (arguably tiny) changeonopenwould be called before the callback is correctly registered. Is this supposed to be handled in some way?