rawrtc / rawrtc-data-channel

A standalone WebRTC and ORTC data channel implementation.
BSD 2-Clause "Simplified" License
52 stars 6 forks source link

Early creation of in-band negotiated data channels #7

Open lgrahl opened 6 years ago

lgrahl commented 6 years ago

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

lgrahl commented 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.