code: function(){
    var location = window.location,
        origin = location.protocol+"//"+location.host;
  
    var socket = io.connect(origin); 
  
    var stylesheets = document.getElementsByTagName("link");
  
    var cacheBuster = function(url){
        var date = Math.round(+new Date/1000).toString();
        url = url.replace(/(\\&|\\\\?)cacheBuster=\\d*/, '');
        return url + (url.indexOf('?') >= 0 ? '&' : '?') +'cacheBuster=' + date;
    };
    var updateStyle = function(stylePathName){
      for(var i = stylesheets.length;i--;){
        var href = stylesheets[i].getAttribute("href");
        stylesheets[i].setAttribute("href",cacheBuster(stylesheets[i].getAttribute("href")));
      }
      return true;
    }
    
    socket.on('update', function(data){
      var evt = {path: data.path, css: !!data.css, stop: false}
      puer.emit("update", evt);
      if(data.css && updateStyle(data.css)) return true;
      if(!evt.stop){
        window.location.reload();     
      }
    })
  }
docs: autoreload