Unable to use https-proxy-agent with engine.io + primus + electron
Bojack92160 opened this issue · 1 comments
Bojack92160 commented
I'm using engine.io client in primus with the electron framework. I want to use a proxy, therefore I use a custom agent (https-proxy-agent), but it keep connecting directly instead of through the proxy. Here is what I have done:
let module = {
transport: { //in primus, options for the specific transformer are put here
agent: new HttpsProxyAgent(url.parse('http://Username:Pswd@IP:Port')),
forceNode: true //because I use electron
},
strategy: "disconnect,timeout",
reconnect: {
max: 5000,
min: 500,
retries: 10
}
}
primus = new Primus(Myurl, module);```
I don't get a message error or anything
darrachequesne commented
Hi! Could you please open an issue in the Primus repository?