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: document `this` binding in TLS callbacks · nodejs/node@891e24c

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
+4-2Lines changed: 4 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2247,7 +2247,8 @@ changes:
22472247
e.g. `0x05hello0x05world`, where the first byte is the length of the next
22482248
protocol name. Passing an array is usually much simpler, e.g.
22492249
`['hello', 'world']`. (Protocols should be ordered by their priority.)
2250-
* `ALPNCallback` {Function} If set, this will be called when a
2250+
* `ALPNCallback` {Function} If set, this will be called
2251+
(with `this` set to the `tls.TLSSocket` instance) when a
22512252
client opens a connection using the ALPN extension. One argument will
22522253
be passed to the callback: an object containing `servername` and
22532254
`protocols` fields, respectively containing the server name from
@@ -2279,7 +2280,8 @@ changes:
22792280
[Session Resumption][] for more information. **Default:** `300`.
22802281
* `SNICallback(servername, callback)` {Function} A function that will be
22812282
called if the client supports SNI TLS extension. Two arguments will be
2282-
passed when called: `servername` and `callback`. `callback` is an
2283+
passed when called: `servername` and `callback`, with `this` set to the
2284+
`tls.TLSSocket` instance associated with the connection. `callback` is an
22832285
error-first callback that takes two optional arguments: `error` and `ctx`.
22842286
`ctx`, if provided, is a `SecureContext` instance.
22852287
[`tls.createSecureContext()`][] can be used to get a proper `SecureContext`.

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.