From 66f45e7e5b7ef661678eb48bb630bb99acc7618b 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 9d0011bb5cc..12edef98481 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -898,6 +898,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