Closed mikicho closed 5 months ago
It seems like Node.js set these properties on TLSSocket init, before the connect event (source).
TLSSocket
connect
With umocked https:
https
https.get('https://example.com') .on('socket', socket => { console.log(socket.authorized); // false console.log(socket.encrypted); // true });
It seems like Node.js set these properties on
TLSSocket
init, before theconnect
event (source).With umocked
https
: