We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ba4fa8 commit 4351ed1Copy full SHA for 4351ed1
lib/http-proxy.js
@@ -8,6 +8,13 @@ var http = require('http'),
8
*/
9
module.exports = httpProxy.Server;
10
11
+module.exports.createProxy = function(options) {
12
+ return {
13
+ web: httpProxy.createRightProxy('web')(options),
14
+ ws: httpProxy.createRightProxy('ws')(options)
15
+ };
16
+}
17
+
18
/**
19
* Creates the proxy server.
20
*
lib/http-proxy/index.js
@@ -80,7 +80,7 @@ function createRightProxy(type) {
80
};
81
82
}
83
-
+httpProxy.createRightProxy = createRightProxy;
84
85
function ProxyServer(options) {
86
EE3.call(this);
0 commit comments