lib/spike/index.js
function (bin) {
    var session = utils.sessionForBin(bin);

    if (session) {
      session.res.forEach(function (res) {
        res.write('event: reload\ndata: 0\n\n');

        if (res.ajax) {
          res.end(); // lets older browsers finish their xhr request
          res.req.emit('close');
        }
      });
    }
  }
function (bin) {
    var session = utils.sessionForBin(bin);

    if (session) {
      session.res.forEach(function (res) {
        res.write('event: reload\ndata: 0\n\n');

        if (res.ajax) {
          res.end(); // lets older browsers finish their xhr request
          res.req.emit('close');
        }
      });
    }
  }
function ( bin ) { var session = utils . sessionForBin ( bin ) ; if ( session ) { session . res . forEach ( function ( res ) { res . write ( 'event: reload\ndata: 0\n\n' ) ; if ( res . ajax ) { res . end ( ) ; // lets older browsers finish their xhr request res . req . emit ( 'close' ) ; } } ) ; } }
Reload all connected clients
Reload all connected clients