title: peerjs event 'call' some times not fire up
body: <p>I setup my local server.</p>
  <pre><code>const fs = require('fs');
  const {PeerServer} = require('peer');
  
  const peerServer = PeerServer({
      port: 3001,
      debug: false,
      secure: true,
      path: '/',
      ssl: {
          key: fs.readFileSync('./key.pem'),
          cert: fs.readFileSync('./cert.pem')
      }
  });
  
  peerServer.on('connection', (_client) =&gt; {
      console.log('Client connects');
  });
  peerServer.on('disconnect', (_client) =&gt; {
      console.log('Client disconnects');
  });
  </code></pre>
  <p>I use also local express server</p>
  <pre><code>const fs = require('fs');
  const key = fs.readFileSync('./key.pem');
  const cert = fs.readFileSync('./cert.pem');
  const express = require('express');
  const app = express();
  const server = require('https').createServer({key: key, cert: cert },app);
  const io = require('socket.io')(server);
  const {v4: uuid} = require('uuid');
  
  
  
  require('./room')(io)
  
  server.listen(3000,'192.168.1.30');
  
  
  app.set('views', __dirname + '/views');
  app.set('view engine', 'ejs');
  app.use(express.static('public'));
  
  app.get('/', ((req, res) =&gt; {
      res.redirect(`${uuid()}`)
  }))
  
  app.get('/:room', ((req, res) =&gt; {
      res.render('room', {roomId: req.params.room})
  }))
  
  function socketInit(io) {
      io.on('connection', socket =&gt; {
          socket.on('join-room', (roomId, userId) =&gt; {
              socket.join(roomId)
              socket.to(roomId).broadcast.emit('user-connected', userId)
  
              socket.on('user_disable_camera', (userId) =&gt; {
                  socket.to(roomId).broadcast.emit('user_disable_camera', userId)
              });
  
              socket.on('user_enable_camera', (userId) =&gt; {
                  socket.to(roomId).broadcast.emit('user_enable_camera', userId)
              })
              // socket.on('screen_share_start', (userId) =&gt; {
              //     socket.to(roomId).broadcast.emit('user-disconnected', userId)
              // });
  
              socket.on('screen_share_stop', (userId) =&gt; {
                  socket.to(roomId).broadcast.emit('screen_share_stop', userId)
              });
              socket.on('disconnect', () =&gt; {
                  socket.to(roomId).broadcast.emit('user-disconnected', userId)
              })
          })
      });
  }
  
  
  module.exports = socketInit
  </code></pre>
  <p>In my html file</p>
  <pre><code>const myPeer = new Peer(undefined, {
      host: '/',
      path: '/',
      secure: true,
      port: '3001'
  });
  myPeer.on('error', e =&gt; {
      console.log('my peer error', e);
      myPeer.reconnect();
  })
  
  ...grab media stream...
      addVideo(document.getElementById('me'), myVideo, stream);
  
      myPeer.on('call', call =&gt; {
          call.answer(stream);
          peers[call.peer] = call;
          console.log('call', call);
          const video = document.createElement('video');
          video.id = call.peer;
          call.on('stream', userVideoStream =&gt; {
              addVideo(videoList, video, userVideoStream)
          });
      })
      socket.on('user-connected', userId =&gt; {
          console.log('user conected', userId);
          connectToNewUser(userId, stream);
      })
  function connectToNewUser(userId, stream) {
      try {
          const call = myPeer.call(userId, stream);
          peers[userId] = call
          console.log('connectToNewUser', stream, userId, peers, call);
          const video = document.createElement('video');
          video.id = userId;
          call.on('stream', videoStream =&gt; {
              addVideo(videoList, video, videoStream)
          });
          call.on('close', () =&gt; {
              video.remove();
          });
      } catch (e) {
          console.log('errrrrrrrrr', e);
      }
  }
  </code></pre>
  <p>Some times when i connect my computer and other computer same network, and https is present myPeer.on('call'... not fire up (2 users). When I open new tab(must be at least 3 users) with same room Id it some times is been called and then video is showing properly. Can some one point me in direction were is error ?</p>