title: Socket.IO emit data into a room to myself
body: <p>I'm building a chat application in which I want to load on start the last messages between 2 users.</p>
  
  <p>Here's what I do on the frontend so load the old messageList from the database:</p>
  
  <pre><code>socket.emit('get messageList', data);
  </code></pre>
  
  <p>on the backend side I load the messages into <code>messages</code> and try to emit them back. I dont want to <code>broadcast.emit</code> since I want to load the data in my session, not in the chat partners.</p>
  
  <pre><code>socket.in(roomId).emit('send messageList', messages);
  </code></pre>
  
  <p>When I execute this code the messageList of the chat partner gets refreshed. Basically it has the same effect as</p>
  
  <pre><code>socket.in(roomId).broadcast.emit('send messageList', messages);
  </code></pre>
  
  <p>Before I implemented the rooms a normal</p>
  
  <pre><code>socket.emit('send messageList', messages);
  </code></pre>
  
  <p>would update my list just as I'd expected. But since I use the code with rooms it doesn't work anymore.</p>
  
  <p>My questions: </p>
  
  <ul>
  <li>Why is that? </li>
  <li>Is it possible to send back data from the backend to the client with socket.io?</li>
  <li>Or am I doing something completely wrong?</li>
  </ul>