@@ -1588,7 +1588,7 @@ changes:
15881588 * ` socket ` {stream.Duplex} Establish secure connection on a given socket
15891589 rather than creating a new socket. Typically, this is an instance of
15901590 [ ` net.Socket ` ] [ ] , but any ` Duplex ` stream is allowed.
1591- If this option is specified, ` path ` , ` host ` and ` port ` are ignored,
1591+ If this option is specified, ` path ` , ` host ` , and ` port ` are ignored,
15921592 except for certificate validation. Usually, a socket is already connected
15931593 when passed to ` tls.connect() ` , but it can be connected later.
15941594 Connection/disconnection/destruction of ` socket ` is the user's
@@ -1623,8 +1623,8 @@ changes:
16231623 More information can be found in the [ RFC 4279] [ ] .
16241624 * ` ALPNProtocols ` : {string\[ ] |Buffer\[ ] |TypedArray\[ ] |DataView\[ ] |Buffer|
16251625 TypedArray|DataView}
1626- An array of strings, ` Buffer ` s or ` TypedArray ` s or ` DataView ` s, or a
1627- single ` Buffer ` or ` TypedArray ` or ` DataView ` containing the supported ALPN
1626+ An array of strings, ` Buffer ` s, ` TypedArray ` s, or ` DataView ` s, or a
1627+ single ` Buffer ` , ` TypedArray ` , or ` DataView ` containing the supported ALPN
16281628 protocols. ` Buffer ` s should have the format ` [len][name][len][name]... `
16291629 e.g. ` '\x08http/1.1\x08http/1.0' ` , where the ` len ` byte is the length of the
16301630 next protocol name. Passing an array is usually much simpler, e.g.
@@ -2010,8 +2010,8 @@ changes:
20102010* ` options ` {Object}
20112011 * ` ALPNProtocols ` : {string\[ ] |Buffer\[ ] |TypedArray\[ ] |DataView\[ ] |Buffer|
20122012 TypedArray|DataView}
2013- An array of strings, ` Buffer ` s or ` TypedArray ` s or ` DataView ` s, or a single
2014- ` Buffer ` or ` TypedArray ` or ` DataView ` containing the supported ALPN
2013+ An array of strings, ` Buffer ` s, ` TypedArray ` s, or ` DataView ` s, or a single
2014+ ` Buffer ` , ` TypedArray ` , or ` DataView ` containing the supported ALPN
20152015 protocols. ` Buffer ` s should have the format ` [len][name][len][name]... `
20162016 e.g. ` 0x05hello0x05world ` , where the first byte is the length of the next
20172017 protocol name. Passing an array is usually much simpler, e.g.
@@ -2070,7 +2070,7 @@ changes:
20702070 in TLS 1.3. Upon failing to set pskIdentityHint ` 'tlsClientError' ` will be
20712071 emitted with ` 'ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED' ` code.
20722072 * ...: Any [ ` tls.createSecureContext() ` ] [ ] option can be provided. For
2073- servers, the identity options (` pfx ` , ` key ` /` cert ` or ` pskCallback ` )
2073+ servers, the identity options (` pfx ` , ` key ` /` cert ` , or ` pskCallback ` )
20742074 are usually required.
20752075 * ...: Any [ ` net.createServer() ` ] [ ] option can be provided.
20762076* ` secureConnectionListener ` {Function}
0 commit comments