wcf.js
wcf.js copied to clipboard
Running requests through a proxy server
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?
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