title: Nodejs multiple client handling
body: <p>I have already setup a standard nodejs server and now i have the problem if one client send a request via socket.io and every client reacts to it but this is wrong i want that only the client who sends the request should react.</p>
  
  <p>on client side:</p>
  
  <pre><code>function show(){
                  socket.emit('show')
              }
  </code></pre>
  
  <p>on server side:</p>
  
  <pre><code>    socket.on('show', function(){
         io.emit('request', 'clear');    //clear a table on the website
         db.each("SELECT tableRow1, tableRow2, tableRow3 FROM table, 
         function(err, row){
            io.emit('new', row.tableRow1, row.tableRow2, row.tableRow3)
         });
       });
  </code></pre>
  
  <p>and the reaction on the client side is:</p>
  
  <pre><code>    socket.on('new', function(tableRow1, tableRow2, tableRow3){
         var myString = ' &lt;input id="id1" type="checkbox" name="boxes"&gt;&lt;label for="id1" id="labelID" onclick="Click(this)"&gt;'tableRow1'&lt;/label&gt;'
         $('#tableID').append($('&lt;tr&gt;')
         .append($("&lt;td&gt;"+myString+'&lt;td/&gt;'+"&lt;td&gt;tableRow2&lt;/td&gt;"+"&lt;td&gt;"TableRow3"&lt;/td&gt;")).append($('&lt;tr/&gt;')));
    });
  </code></pre>
  
  <p>and now the problem is then 1 client presses the button to load data form the database all clients react to it and are getting the data from the server.</p>