From 2172dbfce4728fb34f5aa616d7f5ef86742c128e 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 ec7af9f14f8b11..907229951e3302 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