Skip to content

Commit

Permalink
Update Zzz module interface to be more similar to http.Server interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Vayanis committed Mar 25, 2013
1 parent c2d1560 commit ec01f81
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions lib/z.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
/**
* Zees Includes
*/
var zeeServer = require("./server");
var ZzzServer = require("./server");

/**
* Globals
*/
var server;
module.exports = {

/**
* Wrap http createServer so that we can dynamically
* define requestHandler
* @return {http.Server}
*/
exports.createServer = function() {
server = new ZeeServer();
return server;
};
createServer : function() {
return new ZzzServer();
},

/**
* Provides interface to http.Server.listen
* @return {void}
*/
exports.listen = function() {
server.listen.apply(server, arguments);
Server : ZzzServer
}

0 comments on commit ec01f81

Please sign in to comment.