Skip to content

Commit a1a387b

Browse files
committed
docs: document ALPNCallback option for TLSSocket
1 parent 9ba52a5 commit a1a387b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/tls.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,12 +899,13 @@ 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
902+
* `ALPNCallback` {Function} A callback function that will be called when a
903903
client supports ALPN to select a protocol from the list offered by the
904904
client. The callback receives an object with `servername` and `protocols`
905905
properties. Should return a string from the `protocols` list or `undefined`
906906
if none match. Only used when `isServer` is `true`.
907907
* `session` {Buffer} A `Buffer` instance containing a TLS session.
908+
* `session` {Buffer} A `Buffer` instance containing a TLS session.
908909
* `requestOCSP` {boolean} If `true`, specifies that the OCSP status request
909910
extension will be added to the client hello and an `'OCSPResponse'` event
910911
will be emitted on the socket before establishing a secure communication

0 commit comments

Comments
 (0)