Just a property that is always `true` for TLS sockets.
fix #6735
`tlsSocket.authorizationError`. Also if NPN was used - you can check
`tlsSocket.npnProtocol` for negotiated protocol.
+### tlsSocket.encrypted
+
+Static boolean value, always `true`. May be used to distinguish TLS sockets
+from regular ones.
+
### tlsSocket.authorized
A boolean that is `true` if the peer certificate was signed by one of the
this.authorized = false;
this.authorizationError = null;
+ // Just a documented property to make secure sockets
+ // distinguishable from regular ones.
+ this.encrypted = true;
+
this.on('error', this._tlsError);
if (!this._handle)