Can I create multiple datachannels for one PeerConnection ? Can you provide example as to how it can be achieved, else reason why it is not possible?
Yes, you can create multiple data channels on a single peer connection:
var pc = new RTCPeerConnection();
var dc = pc.createDataChannel("my channel");
var dc2 = pc.createDataChannel("my other channel");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With