title: socket.io emit all clients not emitting over SSL
body: <p>I have the normal socket.io set up:</p>
  
  <p>Client:</p>
  
  <pre><code>import io from 'socket.io-client'
  const socket = io()
  socket.on('connect', () =&gt; {
    console.log('connected')
    socket.emit('message', 'I have connected')
  })
  socket.on('message', (msg) =&gt; console.log(msg))
  </code></pre>
  
  <p>Server:</p>
  
  <pre><code>import socket from 'socket.io'
  const io = socket(/* httpsServer */)
  io.on('connection', (socket) =&gt; {
    console.log('new connection')
    socket.on('message', (msg) =&gt; console.log(msg))
    socket.emit('message', 'This works!')
    io.sockets.emit('message', `This doesn't!`)
  })
  </code></pre>
  
  <p>For some reason emit to all works perfectly via http but not https. Via https the <code>io.sockets.emit</code> doesn't seem to work. Am I missing something?</p>