Skip to content

Commit 2d4cd8a

Browse files
sam-githubBridgeAR
authored andcommitted
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: nodejs#25423 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 383b1ac commit 2d4cd8a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/api/tls.md

+9
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,15 @@ It may be useful for debugging.
898898

899899
See [Session Resumption][] for more information.
900900

901+
### tlsSocket.isSessionReused()
902+
<!-- YAML
903+
added: v0.5.6
904+
-->
905+
906+
* Returns: {boolean} `true` if the session was reused, `false` otherwise.
907+
908+
See [Session Resumption][] for more information.
909+
901910
### tlsSocket.localAddress
902911
<!-- YAML
903912
added: v0.11.4

0 commit comments

Comments
 (0)