From 3b0480dde89650a2bf6ff4712e40a34cc4dc008a Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 27 Apr 2021 19:21:53 -0700 Subject: [PATCH] doc: document `'secureConnect'` event limitation Fixes: https://github.com/nodejs/node/issues/10555 Signed-off-by: James M Snell Refs: https://github.com/nodejs/node/pull/10846 PR-URL: https://github.com/nodejs/node/pull/38447 Reviewed-By: Alba Mendez Reviewed-By: Adrian Estrada --- doc/api/tls.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/tls.md b/doc/api/tls.md index d82ecf733d2..b82de483f9b 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -850,6 +850,9 @@ determine if the server certificate was signed by one of the specified CAs. If `tlsSocket.alpnProtocol` property can be checked to determine the negotiated protocol. +The `'secureConnect'` event is not emitted when a {tls.TLSSocket} is created +using the `new tls.TLSSocket()` constructor. + ### Event: `'session'`