Skip to content

Commit

Permalink
doc: add TLSSocket.isSessionReused() docs
Browse files Browse the repository at this point in the history
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 <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
sam-github authored and BridgeAR committed Jan 16, 2019
1 parent 383b1ac commit 2d4cd8a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/api/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d4cd8a

Please sign in to comment.