Skip to content

Commit 336d68d

Browse files
committed
doc: document ALPNCallback option for TLSSocket
Fixes: #61047
1 parent 9ba52a5 commit 336d68d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

doc/api/tls.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -899,11 +899,7 @@ changes:
899899
* `rejectUnauthorized`: See [`tls.createServer()`][]
900900
* `ALPNProtocols`: See [`tls.createServer()`][]
901901
* `SNICallback`: See [`tls.createServer()`][]
902-
* `ALPNCallback` {Function} A callback function that will be called when a
903-
client supports ALPN to select a protocol from the list offered by the
904-
client. The callback receives an object with `servername` and `protocols`
905-
properties. Should return a string from the `protocols` list or `undefined`
906-
if none match. Only used when `isServer` is `true`.
902+
* `ALPNCallback`: See [`tls.createServer()`][]
907903
* `session` {Buffer} A `Buffer` instance containing a TLS session.
908904
* `requestOCSP` {boolean} If `true`, specifies that the OCSP status request
909905
extension will be added to the client hello and an `'OCSPResponse'` event

0 commit comments

Comments
 (0)