title: Socket.IO server performance and bandwidth usage
body: <p>I'm about to host a small socket server on a local computer and I'd like to know what kind of bandwidth it's going to use.  On most days it will have no more than 50 clients connected at once, but once or twice a week it could have as many as 5,000+ clients at once.  However, the only messages sent will be an occasional single message to all connected clients at once with no extra data or anything.</p>
  
  <p>Will the server cause a significant drop in performance on the computer it's hosted on or slow down my internet speeds at all?</p>
  
  <p>Server.js:</p>
  
  <pre><code>var app = require('http').createServer(handler)
     , io = require('socket.io').listen(app)
     , fs = require('fs')
  
   app.listen(8001);
  
  function handler (req, res) {
  fs.readFile(__dirname + '/index.html',
    function (err, data) {
      if (err) {
        res.writeHead(500);
        return res.end('Error loading index.html');
      }
  
      res.writeHead(200);
      res.end(data);
    });
  }
  
  io.sockets.on('connection', function (socket) {
    socket.on('SendDefault', function(data) {
      socket.broadcast.emit('GetDefault');
    });
  });
  </code></pre>
  
  <p>Client.js:</p>
  
  <pre><code>setTimeout( function( ){ 
    socket = io.connect('[IP Address]:8001');
    socket.on('GetDefault', function(data) {
      DoStuff( );
    );
  } ); }, 10000 );
  </code></pre>