'use strict';

var port = process.env.PORT = process.env.PORT || 5000;

var http = require('http');
var airserver = require('./lib/airserver');

module.exports = function () {
  var server = http.createServer();
  server.on('listening', function () {
    airserver(server.address().port);
  });
  return server;
};

@@ -161,24 +161,33 @@
 = function (
+onRequest
 ) %7B%0A  var se
@@ -211,16 +211,25 @@
 eServer(
+onRequest
 );%0A  ser

Allow the on-request event listener to be parsed when creating the server