function( eventaur, port ) {
  var gith = this;

  // are we changing ports?
  if ( port ) {
    this.port = port;
  }
  if ( !this.port ) {
    throw new Error('.listen() requires a port to be set');
  }

  this.server = http.createServer( function( req, res ) {
    var data = "";
    if ( req.method === "POST" ) {
      req.on( "data", function( chunk ) {
        data += chunk;
      });
    }

    req.on( "end", function() {
      if ( _.indexOf( gith.ips, req.connection.remoteAddress ) >= 0 ||
           _.indexOf( gith.ips, "*" ) >= 0 ) {
        if ( /^payload=/.test( data ) ) {
          var payload = JSON.parse( querystring.unescape(data.slice(8)) );
          eventaur.emit( "payload", payload );
          res.writeHead( 200, {
            'Content-type': 'text/html'
          });
        }
      }      
      res.end();
    });

  }).listen( port );
}
function( eventaur, port ) {
  var gith = this;

  
  if ( port ) {
    this.port = port;
  }
  if ( !this.port ) {
    throw new Error('.listen() requires a port to be set');
  }

  this.server = http.createServer( function( req, res ) {
    var data = "";
    if ( req.method === "POST" ) {
      req.on( "data", function( chunk ) {
        data += chunk;
      });
    }

    req.on( "end", function() {
      if ( _.indexOf( gith.ips, req.connection.remoteAddress ) >= 0 ||
           _.indexOf( gith.ips, "*" ) >= 0 ) {
        if ( /^payload=/.test( data ) ) {
          var payload = JSON.parse( querystring.unescape(data.slice(8)) );
          eventaur.emit( "payload", payload );
          res.writeHead( 200, {
            'Content-type': 'text/html'
          });
        }
      }      
      res.end();
    });

  }).listen( port );
}
function ( eventaur , port ) { var gith = this ; // are we changing ports? if ( port ) { this . port = port ; } if ( ! this . port ) { throw new Error ( '.listen() requires a port to be set' ) ; } this . server = http . createServer ( function ( req , res ) { var data = "" ; if ( req . method === "POST" ) { req . on ( "data" , function ( chunk ) { data += chunk ; } ) ; } req . on ( "end" , function ( ) { if ( _ . indexOf ( gith . ips , req . connection . remoteAddress ) >= 0 || _ . indexOf ( gith . ips , "*" ) >= 0 ) { if ( / ^payload= / . test ( data ) ) { var payload = JSON . parse ( querystring . unescape ( data . slice ( 8 ) ) ) ; eventaur . emit ( "payload" , payload ) ; res . writeHead ( 200 , { 'Content-type' : 'text/html' } ) ; } } res . end ( ) ; } ) ; } ) . listen ( port ) ; }
the listen method - this gets added/bound in module.exports.create, fyi
the listen method - this gets added / bound in module . exports . create fyi