wcf.js icon indicating copy to clipboard operation
wcf.js copied to clipboard

Running requests through a proxy server

Open martisj opened this issue 9 years ago • 1 comments

I have to do all requests through a proxy server, how would I go about intercepting the wcf.js request to go through a proxy server?

martisj avatar Sep 25 '16 21:09 martisj

it's not officially supported but wcf.js depends on ws.js which you can patch to get this behavior by adding the proxy parameter when calling the request module:

https://github.com/yaronn/ws.js/blob/master/lib/handlers/client/http.js#L9

yaronn avatar Sep 27 '16 18:09 yaronn