RTCDataChannel send method not sending data
问题 I'm having a strange problem with RTCDataChannel. I'm doing some research on WebRTC and I have working WebRTC audio/video chat already. Now I wanted to add text chat and file sharing to it using RTCDataChannel. I've created RTCDataChannel like this: var dataChannelOptions = { reliable: true, maxRetransmitTime: "2000" }; dataChannel = yourConnection.createDataChannel("testDataChannel", dataChannelOptions); dataChannel.onerror = function (error) { console.log("dataChannel.OnError:", error); };