secureEndpoint
1 parent 4338d6c commit 121449bCopy full SHA for 121449b
1 file changed
README.md
@@ -73,10 +73,6 @@ console.log('attempting to connect to WebSocket %j', endpoint);
73
// create an instance of the `HttpsProxyAgent` class with the proxy server information
74
var opts = url.parse(proxy);
75
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
-
80
var agent = new HttpsProxyAgent(opts);
81
82
// finally, initiate the WebSocket connection
0 commit comments