Skip to content

Commit 121449b

Browse files
committed
README: remove outdated secureEndpoint reference
No longer needed with node-agent-base v2!
1 parent 4338d6c commit 121449b

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ console.log('attempting to connect to WebSocket %j', endpoint);
7373
// create an instance of the `HttpsProxyAgent` class with the proxy server information
7474
var opts = url.parse(proxy);
7575

76-
// IMPORTANT! Set the `secureEndpoint` option to `false` when connecting
77-
// over "ws://", but `true` when connecting over "wss://"
78-
opts.secureEndpoint = parsed.protocol ? parsed.protocol == 'wss:' : false;
79-
8076
var agent = new HttpsProxyAgent(opts);
8177

8278
// finally, initiate the WebSocket connection

0 commit comments

Comments
 (0)