title: Where is the NodeJS idle loop?
body: <p>Using ExpressJS and Socket.IO I have an HTML scene where multiple users can connect to NodeJS. I am about to do some animation that has to sync to all clients.</p>
  
  <p>In the client, I know animation can be achieved by setInterval() (not time-ideal) then socket.emit() to NodeJS. But is there an Idle loop in NodeJS that can be used for master-controlling animations and io.sockets.emit() to update everyone about everyone?</p>
  
  <p>EDIT: I want to do general "animation" of values in node.js e.g. pseudocode:</p>
  
  <pre><code>process.idle(function() {
  
       // ...
       itempos.x += (itempos.dest - itempos.x) / 20; // easing
       itempos.y += (itempos.dest - itempos.y) / 20; // easing
  
       io.sockets.broadcast('update', itempos);
       // ...
  });
  </code></pre>