From c07c80717ce006e61df0e94c0d02cdaf2ac66107 Mon Sep 17 00:00:00 2001 From: ikeyan Date: Fri, 16 Jan 2026 10:13:29 +0900 Subject: [PATCH] doc: added 'secure' event to tls.TLSSocket Fixes #61060 PR-URL: https://github.com/nodejs/node/pull/61066 Reviewed-By: Luigi Pinca --- doc/api/tls.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index 79a51cd3458..72acf79749e 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -952,6 +952,18 @@ The listener callback is passed a single argument when called: Typically, the `response` is a digitally signed object from the server's CA that contains information about server's certificate revocation status. +### Event: `'secure'` + + + +The `'secure'` event is emitted after the TLS handshake has successfully +completed and a secure connection has been established. + +This event is emitted on both client and server {tls.TLSSocket} instances, +including sockets created using the `new tls.TLSSocket()` constructor. + ### Event: `'secureConnect'`