GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify text about using 'session' event for compatibility · nodejs/node@d60da08

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • tls.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/tls.md‎

Copy file name to clipboardExpand all lines: doc/api/tls.md
+7-7Lines changed: 7 additions & 7 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -726,14 +726,14 @@ On the client, the `session` can be provided to the `session` option of
726726

727727
See [Session Resumption][] for more information.
728728

729-
Note: For TLSv1.2 and below, [`tls.TLSSocket.getSession()`][] can be called once
730-
the handshake is complete. For TLSv1.3, only ticket based resumption is allowed
729+
For TLSv1.2 and below, [`tls.TLSSocket.getSession()`][] can be called once
730+
the handshake is complete. For TLSv1.3, only ticket-based resumption is allowed
731731
by the protocol, multiple tickets are sent, and the tickets aren't sent until
732-
later, after the handshake completes, so it is necessary to wait for the
733-
`'session'` event to get a resumable session. Applications are
734-
recommended to use the `'session'` event instead of `getSession()` to ensure
735-
they will work for all TLS protocol versions. Applications that only expect to
736-
get or use 1 session should listen for this event only once:
732+
after the handshake completes. So it is necessary to wait for the
733+
`'session'` event to get a resumable session. Applications
734+
should use the `'session'` event instead of `getSession()` to ensure
735+
they will work for all TLS versions. Applications that only expect to
736+
get or use one session should listen for this event only once:
737737

738738
```js
739739
tlsSocket.once('session', (session) => {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.