var app = require('http').createServer();
var request = require('request');
var io = require('socket.io')(app);
var fs = require('fs');

app.listen(13374);

io.on('connection', function (socket) {
  
  setInterval(function() {
    request('http://status.hasi.it', function (error, response, body) {
      if (!error && response.statusCode == 200) {
        socket.emit('status', JSON.parse(body));
      }
    });
  }, 500)

});


@@ -154,80 +154,36 @@
 );%0A%0A
-io.on('connection', function (socket) %7B%0A  %0A  setInterval(function() %7B%0A  
+function pullData(socket) %7B%0A
   re
@@ -252,18 +252,16 @@
 ) %7B%0A    
-  
 if (!err
@@ -296,18 +296,16 @@
  200) %7B%0A
-  
       so
@@ -351,30 +351,116 @@
     
+%7D%0A
   %7D
-%0A    %7D);%0A  %7D
+);%0A%7D%0A%0Aio.on('connection', function (socket) %7B%0A  pullData(socket);%0A  setInterval(pullData
 , 500
+0
+, socket
 )
-%0A
 %0A%7D);

Add initial load and larger update interval