title: using socket io for mobile app and web
body: <p>I want to do this </p>
  
  <ol>
  <li>a user placed an order on mobile app</li>
  <li>in the seller's dashboard (web), it show an instant order</li>
  </ol>
  
  <p>I've done the normal API, means without socket.io, the seller have to refresh the dashboard in order to see the if any order is placed.</p>
  
  <p>Yesterday I play around with socket.io, I'm stuck. I'm able to send something from my mobile app (cilent) to my server (node.js), but I don't know what to do with the data received.</p>
  
  <pre><code>router.get('/', function(req, res) {
    io.on('connection', function(client) { 
              client.on('order', function(data) {
                  console.log(data); //real time data from mobile app
                  //I have the data but what to do here?
              });
          });
  });
  </code></pre>