title: Peerjs not working.. no errors
body: <p>I am trying to do very simple one page test of peerjs as i learn it.</p>
  
  <p>However, the code below doesn't seem to work. I have gone over documents three times. But can't find any error in my code and there are no error in output either.</p>
  
  <p>For my inspiration i used this: <a href="http://cdn.peerjs.com/demo/helloworld.html" rel="nofollow">http://cdn.peerjs.com/demo/helloworld.html</a></p>
  
  <p><strong>My code</strong></p>
  
  <pre><code>var p1 = new Peer('a351TxFJLKnljhl22',{key: 'key'});
  var p2 = new Peer('a351TxFJLKnljhl22',{key: 'key'});
  
  p1.on('open', function(id) {
  
      console.log('connected to server');
      var c = p1.connect('a351TxFJLKnljhl22');
          c.on('open', function(data) {    
              console.log('connected to peer');
              c.send('connection working');
          });    
  });
  
  p2.on('connection', function(connection) {
        connection.on('data', function(data) {
            console.log('p2 speaking..got from p1: '+data);
        });
  });
  </code></pre>
  
  <p>I expect to get connection working in console.</p>