Open lgrahl opened 6 years ago
FWIW, once https://github.com/w3c/webrtc-pc/issues/1818 has been accepted (assign the id once the SCTP association has been established), we should also wait for the SCTP association instead of blindly creating channels as soon as the DTLS role is known.
Creating data channels is not allowed before the DTLS transport is connected to be able to determine a stream id (which uses even/odd rule depending on the DTLS role). Being able to create data channels earlier would be nice.
Once resolved, update examples in RAWRTC. Related: https://github.com/rawrtc/rawrtc/issues/57