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

Added support for Node HTTP(S) Agent #474

Merged
merged 3 commits into from Apr 19, 2019
Merged

Conversation

Minigugus
Copy link
Contributor

Fix #473

A very simple PR that add support for HTTP Agents, allowing requests to be proxied by many kind of proxies (with http-proxy-agent or socks-proxy-agent for instance).

@Minigugus Minigugus changed the title Added support for Node HTTP(S) Agent. Added support for Node HTTP(S) Agent Mar 8, 2019
if (this.options.agent && !(this.options.ws && this.options.ws.agent)) {
this.options.ws = this.options.ws || {};
this.options.ws.agent = this.options.agent;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The jsdoc comment for the client constructor should be updated to reflect this new option.

@abalabahaha abalabahaha merged commit 0509d44 into abalabahaha:dev Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants