Skip to content

Commit 5c602da

Browse files
sam-githubMylesBorins
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: #25423 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 1b6dfac commit 5c602da

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
@@ -811,6 +811,15 @@ It may be useful for debugging.
811811

812812
See [Session Resumption][] for more information.
813813

814+
### tlsSocket.isSessionReused()
815+
<!-- YAML
816+
added: v0.5.6
817+
-->
818+
819+
* Returns: {boolean} `true` if the session was reused, `false` otherwise.
820+
821+
See [Session Resumption][] for more information.
822+
814823
### tlsSocket.localAddress
815824
<!-- YAML
816825
added: v0.11.4

0 commit comments

Comments
 (0)