From 5c602dabc46fcc332791eea223462b181f092310 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 9 Jan 2019 12:44:55 -0800 Subject: [PATCH] doc: add TLSSocket.isSessionReused() docs The API has existed forever and is used in our unit tests. It is supported for TLS1.3 as well as 1.2 and useful for troubleshooting, so it should be documented. PR-URL: https://github.com/nodejs/node/pull/25423 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig --- doc/api/tls.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/tls.md b/doc/api/tls.md index 179560777b7be5..08431b69cb69c8 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -811,6 +811,15 @@ It may be useful for debugging. See [Session Resumption][] for more information. +### tlsSocket.isSessionReused() + + +* Returns: {boolean} `true` if the session was reused, `false` otherwise. + +See [Session Resumption][] for more information. + ### tlsSocket.localAddress