title: Socket.io broadcast to room not working
body: <p>In a node.js application using <code>"socket.io": "^2.0.4"</code></p>
  
  <p>Socket.io is initialized like this : </p>
  
  <pre><code>export let io: any;
  
   io = socketio(server,
      {
        secure: secure,
        rejectUnauthorized: false,
      },
    );
  
    io.set('origins', '*:*');
    io.origins('*:*');
  
    io.on('connection', (socket) =&gt; {
    socket.on('message', async (data) =&gt; {
      }
    }
  </code></pre>
  
  <p>I want to broadcast <code>message</code> to all socket in a room</p>
  
  <p>So I did : </p>
  
  <pre><code>io.to(roomName).emit('message', data);
  </code></pre>
  
  <p>I logged after  io().to().emit() with no issue the roomName and data are ok</p>
  
  <p>But no event pass in <code>message</code>, what am I missing ?</p>