title: how to make a crud application with websockets?
body: <p>i want to make an express app with socketio, a simple crud app but real-time </p>
  
  <pre><code>socket.on('users:create',function(data){
      console.log(data);
      salt = cryptom.salt(32);
      hash = cryptom.hash(data.pass,salt);
  
                      u = new user({  name: data.name, 
                                      salt: salt,
                                      hash: hash,  
                                      email: data.email, 
                                      ci: data.ci, 
                                      telf: data.telf, 
                                      rif: data.rif, 
  
                                  });
                      u.save(function (err) {
                          if(err){
                              console.log(err);
  
                          }else{
  
                              user.find({},function(err,user){
                                  io.sockets.emit('users:index',user);
                              });
  
                          }});
  
    })
  </code></pre>
  
  <p>i want to know if this is correct or not, if is efficient send all the info through websockets.</p>