Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem using proxy with primus client side #757

Open
Bojack92160 opened this issue Feb 9, 2020 · 0 comments
Open

Problem using proxy with primus client side #757

Bojack92160 opened this issue Feb 9, 2020 · 0 comments

Comments

@Bojack92160
Copy link

Bojack92160 commented Feb 9, 2020

I'm trying to connect with primus through a proxy. For that, I use the transport option like this:

      transport: { 
        agent: new HttpsProxyAgent(url.parse('http://Username:Pswd@IP:Port')),
        extraHeaders: {}
        forceNode: true,
      },
      strategy: "disconnect,timeout",
      reconnect: {
        max: 5000,
        min: 500,
        retries: 10
      }
    }

let primus = new Primus(Myurl, module);

Primus doesn't use my proxy and connect directly with my own IP adress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant