File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ module.exports = function createProxyServer (bs, scripts) {
7171 var target = opt . get ( "target" ) ;
7272 var proxyReq = getProxyReqFunctions ( opt . get ( "proxyReq" ) , opt , bs ) ;
7373 var proxyRes = getProxyResFunctions ( opt . get ( "proxyRes" ) , opt ) ;
74+ var proxyResWs = opt . get ( "proxyReqWs" ) ;
7475
7576 /**
7677 * Add the proxy middleware to any given by the user
@@ -106,9 +107,9 @@ module.exports = function createProxyServer (bs, scripts) {
106107 /**
107108 * Add any user provided functions for proxyReq, proxyReqWs and proxyRes
108109 */
109- applyFns ( "proxyReq" , proxyReq ) ;
110- applyFns ( "proxyRes" , proxyRes ) ;
111- applyFns ( "proxyReqWs" , opt . get ( "proxyReqWs" ) )
110+ applyFns ( "proxyReq" , proxyReq ) ;
111+ applyFns ( "proxyRes" , proxyRes ) ;
112+ applyFns ( "proxyReqWs" , proxyResWs ) ;
112113
113114 /**
114115 * Handle Proxy errors
You can’t perform that action at this time.
0 commit comments