summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2019-01-09 12:44:55 -0800
committerSam Roberts <vieuxtech@gmail.com>2019-01-14 15:34:53 -0800
commit66f45e7e5b7ef661678eb48bb630bb99acc7618b (patch)
tree8ebfb083e037aa137e3a56a19ac3a3c85cfeb664 /doc
parent273d7dd8b85239c26256f2fbd1510bb5555e4075 (diff)
downloadnode-new-66f45e7e5b7ef661678eb48bb630bb99acc7618b.tar.gz
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 <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/tls.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/tls.md b/doc/api/tls.md
index 9d0011bb5c..12edef9848 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()
+<!-- YAML
+added: v0.5.6
+-->
+
+* Returns: {boolean} `true` if the session was reused, `false` otherwise.
+
+See [Session Resumption][] for more information.
+
### tlsSocket.localAddress
<!-- YAML
added: v0.11.4