title: why in webkitPeerConnection00(stun,onSignal) onSignal callback is not being called?
body: <p>I am trying to create peerconnection between two chrome(ver 20.0.1132.57) windows on a windows system. I am hosting my application on a node.js server on a linux machine and using socket.io. These two machines are on same internal network. I am not using stun server. Is it required to use STUN for this scenario as both the machines are part of same internal network? If not, then why onSignal callback is not being called? </p>
  
  <pre><code>  var stun=null;
  
    function connect(){
    createPeer();
    pc.addStream(localstream);
    }
  
    function createPeer(){ 
    pc = new webkitPeerConnection00(stun, onSignal);
  
    pc.onadddstream=onRemoteStreamAdded;
    pc.onremovestream=onRemoteStreamRemoved;
    }
  
    function onSignal(message){   
    socket.send(message)//sending this to server
    }
  
    //on receiving message 
    socket.on('message',onMessage);
    function onMessage(message){
     if(pc==null){
               createPeer();
               pc.addStream(localstream);
                  }
     pc.processSignallingMessage(message);
     }
  </code></pre>
  
  <p>///server side</p>
  
  <pre><code>     socket.on('message', function(message){
       socket.broadcast.send(message);//broadcasting received message to other peers
       });
  </code></pre>
  
  <p>I have used this demo <a href="http://html5videoguide.net/presentations/WebDirCode2012/websocket/webrtc.html" rel="nofollow">http://html5videoguide.net/presentations/WebDirCode2012/websocket/webrtc.html</a></p>
  
  <p>I tried to understand peer connection working by going through this <a href="http://www.html5rocks.com/en/tutorials/webrtc/basics/#toc-sans" rel="nofollow">http://www.html5rocks.com/en/tutorials/webrtc/basics/#toc-sans</a> where on one page itself both caller and callee are implemented. It didn't work for me as it is throwing error in new RTCIceCandidate(candidate),  error "ReferenceError: RTCIceCandidate is not defined" .
  Is there any other syntax for creating Ice Candidate?</p>
  
  <p>Thanks in advance.  </p>