@@ -2247,7 +2247,8 @@ changes: |
2247 | 2247 | e.g. `0x05hello0x05world`, where the first byte is the length of the next |
2248 | 2248 | protocol name. Passing an array is usually much simpler, e.g. |
2249 | 2249 | `['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 |
2251 | 2252 | client opens a connection using the ALPN extension. One argument will |
2252 | 2253 | be passed to the callback: an object containing `servername` and |
2253 | 2254 | `protocols` fields, respectively containing the server name from |
@@ -2279,7 +2280,8 @@ changes: |
2279 | 2280 | [Session Resumption][] for more information. **Default:** `300`. |
2280 | 2281 | * `SNICallback(servername, callback)` {Function} A function that will be |
2281 | 2282 | 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 |
2283 | 2285 | error-first callback that takes two optional arguments: `error` and `ctx`. |
2284 | 2286 | `ctx`, if provided, is a `SecureContext` instance. |
2285 | 2287 | [`tls.createSecureContext()`][] can be used to get a proper `SecureContext`. |
|