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

Any way to connect via a proxy? #17

Closed
zgalili opened this issue Nov 4, 2019 · 2 comments
Closed

Any way to connect via a proxy? #17

zgalili opened this issue Nov 4, 2019 · 2 comments

Comments

@zgalili
Copy link

zgalili commented Nov 4, 2019

Hi :)

In our production environment we need to connect trough a proxy,
is there any way to do it with async-websocket?

Thanks,
Ziv.

@ioquatix
Copy link
Member

ioquatix commented Nov 5, 2019

Yes, it's possible.

You need to create an HTTP client connected to your proxy with the appropriate authentication.

Then you need to create a proxied endpoint, e.g. https://github.com/socketry/async-http/blob/master/spec/async/http/proxy_spec.rb#L33-L36

Then you need to use async web socket to connect via this proxied endpoint.

If you are using this in a commercial project, please consider sponsoring this project. Higher levels of sponsorship will allow me to dedicate time to your specific problems, including the eco-system for everyone!

@ioquatix
Copy link
Member

Another company sponsored the proxy implementation. It's part of async-http.

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

2 participants