title: Socket.io send data specific to each user
body: <p>What is the best method to send user specific data from node server to client using socket io. Should I create each socket connections for users (probably hit the performance) or should I open each channel based on user.</p>
  
  <p>----- Update on 09/16/2014-----</p>
  
  <p>Recently i have tried creating multiple rooms corresponding to each userid based on login and in the UI layer i'm only getting user specific data. Everything works fine.</p>
  
  <p>But if we look into Chrome Web Developer Websocket tab and click  the connection  and Frames subtab i could still see other user data. Does this means we have to spin off different socket connection for each user rather than creating rooms for user.</p>
  
  <p>I have broadcasted data for 3 id</p>
  
  <pre><code>1.starts with dGhvY
  2.starts with bnZIZ
  3.starts with dXZIb
  </code></pre>
  
  <p>Please find screenshot to get more idea<img src="https://i.stack.imgur.com/8x7Hb.jpg" alt="enter image description here"></p>