title: Peer.JS own https server error
body: <p>Getting error of id undefined.
  If I use <code>0.peerjs.com</code> it works just fine.
   This is the client side code :</p>
  
  <pre><code>var peer = new Peer({
          host: 'vchat247.hopto.org',
          port: 9000,
          path: '/peer/',
          debug: 3,
          config: {
              'iceServers': [
                  {url: 'stun:stun1.l.google.com:19302'},
                  {
                      url: 'turn:numb.viagenie.ca',
                      credential: 'muazkh', username: 'webrtc@live.com'
                  }
              ]
          }
      });
  </code></pre>
  
  <p>And here is my own <code>peer-server</code> code :</p>
  
  <pre><code>var fs = require('fs');
  var PeerServer = require('peer').PeerServer;
  
  var server = PeerServer({
      port: 9000,
      path: '/peer/',
      ssl: {
          key: fs.readFileSync('./myserver.key'),
          certificate: fs.readFileSync('./vchat247.hopto.org.crt')
      }
  });
  </code></pre>
  
  <p>This is what i get: 
  <a href="https://i.stack.imgur.com/ESgjm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ESgjm.png" alt="enter image description here"></a></p>
  
  <p>What am I doing wrong?</p>
  
  <p>And if I use this code :</p>
  
  <pre><code>function randomString(length, chars) {
          var result = '';
          for (var i = length; i &gt; 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
          return result;
      }
     var peer = new Peer(randomString(16, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'), {host: 'vchat247.hopto.org', port: 9000, path: '/peer/'});
  </code></pre>
  
  <p>Apparently, I get an id, but after a while, this is the browser console result : <a href="https://i.stack.imgur.com/dVq3J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dVq3J.png" alt="enter image description here"></a>
  Thanks in advance :)</p>