[fix] closes #547

This commit is contained in:
yawnt 2014-01-16 15:03:44 +01:00
parent 0ba4fa8e5e
commit 4351ed1c86
2 changed files with 8 additions and 1 deletions

View File

@ -8,6 +8,13 @@ var http = require('http'),
*/ */
module.exports = httpProxy.Server; module.exports = httpProxy.Server;
module.exports.createProxy = function(options) {
return {
web: httpProxy.createRightProxy('web')(options),
ws: httpProxy.createRightProxy('ws')(options)
};
}
/** /**
* Creates the proxy server. * Creates the proxy server.
* *

View File

@ -80,7 +80,7 @@ function createRightProxy(type) {
}; };
}; };
} }
httpProxy.createRightProxy = createRightProxy;
function ProxyServer(options) { function ProxyServer(options) {
EE3.call(this); EE3.call(this);