Skip to content

Commit

Permalink
README: remove outdated secureEndpoint reference
Browse files Browse the repository at this point in the history
No longer needed with node-agent-base v2!
  • Loading branch information
TooTallNate committed Aug 14, 2015
1 parent 4338d6c commit 121449b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ console.log('attempting to connect to WebSocket %j', endpoint);
// create an instance of the `HttpsProxyAgent` class with the proxy server information
var opts = url.parse(proxy);

// IMPORTANT! Set the `secureEndpoint` option to `false` when connecting
// over "ws://", but `true` when connecting over "wss://"
opts.secureEndpoint = parsed.protocol ? parsed.protocol == 'wss:' : false;

var agent = new HttpsProxyAgent(opts);

// finally, initiate the WebSocket connection
Expand Down

0 comments on commit 121449b

Please sign in to comment.