title: Sending notification using node.js + socket.io
body: <p>I am trying to send notification using Node.js + soket.io</p>
  
  <p>On client side i emit to server to listen</p>
  
  <pre><code>socket.emit('send to server',{user_id:user_id,other_stuff:other_stuff})
  </code></pre>
  
  <p>On node</p>
  
  <pre><code>socket.on('send to server',function(date){ socket.emit('notification_'+user_id,'test data'); });
  </code></pre>
  
  <p>On client side to listen notification</p>
  
  <pre><code>socket.on("notification_&lt;?php echo $_SESSION['user_id'];?&gt;",function(date){alert(data)});
  </code></pre>
  
  <p>Problem is that it doesn't send notification to other user</p>
  
  <p>If i pass my own user_id during emit "send to server" then it returns to myself but if use other user_id (who is logged in other borwser) it doesn't send anything to that user.</p>
  
  <p>Please point how i can send notification to different user when some action occur. </p>