From a7d96a568fc501ba02a09b7b4d10096d2664f0a6 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. --- doc/api/tls.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/tls.md b/doc/api/tls.md index 9d0011bb5ccf49..12edef98481995 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