@@ -1588,7 +1588,7 @@ changes:
1588
1588
* ` socket ` {stream.Duplex} Establish secure connection on a given socket
1589
1589
rather than creating a new socket. Typically, this is an instance of
1590
1590
[ ` 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,
1592
1592
except for certificate validation. Usually, a socket is already connected
1593
1593
when passed to ` tls.connect() ` , but it can be connected later.
1594
1594
Connection/disconnection/destruction of ` socket ` is the user's
@@ -1623,8 +1623,8 @@ changes:
1623
1623
More information can be found in the [ RFC 4279] [ ] .
1624
1624
* ` ALPNProtocols ` : {string\[ ] |Buffer\[ ] |TypedArray\[ ] |DataView\[ ] |Buffer|
1625
1625
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
1628
1628
protocols. ` Buffer ` s should have the format ` [len][name][len][name]... `
1629
1629
e.g. ` '\x08http/1.1\x08http/1.0' ` , where the ` len ` byte is the length of the
1630
1630
next protocol name. Passing an array is usually much simpler, e.g.
@@ -2010,8 +2010,8 @@ changes:
2010
2010
* ` options ` {Object}
2011
2011
* ` ALPNProtocols ` : {string\[ ] |Buffer\[ ] |TypedArray\[ ] |DataView\[ ] |Buffer|
2012
2012
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
2015
2015
protocols. ` Buffer ` s should have the format ` [len][name][len][name]... `
2016
2016
e.g. ` 0x05hello0x05world ` , where the first byte is the length of the next
2017
2017
protocol name. Passing an array is usually much simpler, e.g.
@@ -2070,7 +2070,7 @@ changes:
2070
2070
in TLS 1.3. Upon failing to set pskIdentityHint ` 'tlsClientError' ` will be
2071
2071
emitted with ` 'ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED' ` code.
2072
2072
* ...: 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 ` )
2074
2074
are usually required.
2075
2075
* ...: Any [ ` net.createServer() ` ] [ ] option can be provided.
2076
2076
* ` secureConnectionListener ` {Function}
0 commit comments