RTCDataChannel's ReadyState no está 'abierto'

Estoy tratando de enviar mensajes de texto a través de unRTCPeerConnection conRTCDataChannel utilizandoWebRTC's adapter.js, pero recibo el siguiente error:

Uncaught InvalidStateError:
Failed to execute 'send' on 'RTCDataChannel':
RTCDataChannel.readyState is not 'open'

Mi código está disponible a través deeste violín y por debajo:

var peerConnection = new RTCPeerConnection(null, {
  optional: [{
    RtpDataChannels: true
  }]
});

peerConnection.ondatachannel = function(event) {
  receiveChannel = event.channel;
  receiveChannel.onmessage = function(event){
    alert(event.data);
  };
};

var dataChannel = peerConnection.createDataChannel("data", {reliable: false});
dataChannel.send("Hello");

¿Estoy haciendo algo mal?

Respuestas a la pregunta(2)

Su respuesta a la pregunta