Closed syter closed 1 year ago
This code in this repository has been moved to the proxy-agents
monorepo, so I am closing this pull request. If you feel that this issue still exists as of the latest release, feel free to open a new issue over there.
My project is create a websocket connection between my computer and a internet websocket server. Now I want to use proxy. I get some proxy IP from Internet. Such as: 'http://51.38.71.101:8080'.
Here is my code:
When I use
socket = new WebSocket(url);
, my console log is:But when I use
socket = new WebSocket(url, { agent: agent });
, my console log is:I have test proxy IP in
http.get
way like documents said, it's no problem So how can I do for it??And my node version is
v11.7.0
ws version is7.0.1
https-proxy-agent version is2.2.1
http-proxy-agent version is2.1.0