title: RTCDataChannel's ReadyState is not 'open'
body: <p>I'm trying to send text over an <code>RTCPeerConnection</code> with <code>RTCDataChannel</code> using <a href="http://webrtc.googlecode.com/svn/trunk/samples/js/base/adapter.js" rel="noreferrer">WebRTC's adapter.js</a>, but I'm getting the following error:</p>
  
  <pre><code>Uncaught InvalidStateError:
  Failed to execute 'send' on 'RTCDataChannel':
  RTCDataChannel.readyState is not 'open'
  </code></pre>
  
  <p>My code is available via <a href="http://jsfiddle.net/KHWF6/" rel="noreferrer">this fiddle</a> and below:</p>
  
  <pre><code>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");
  </code></pre>
  
  <p>Am I doing anything wrong?</p>