@@ -1705,11 +1705,9 @@ changes:
17051705 verification fails; `err.code` contains the OpenSSL error code. **Default:**
17061706 `true`.
17071707 * `pskCallback` {Function} For TLS-PSK negotiation, see [Pre-shared keys][].
1708- * `ALPNProtocols` {string\[]|Buffer\[]|TypedArray\[]|DataView\[]|Buffer|
1709- TypedArray|DataView}
1710- An array of strings, `Buffer`s, `TypedArray`s, or `DataView`s, or a
1711- single `Buffer`, `TypedArray`, or `DataView` containing the supported ALPN
1712- protocols. `Buffer`s should have the format `[len][name][len][name]...`
1708+ * `ALPNProtocols` {string\[]|Buffer|TypedArray|DataView} An array of strings,
1709+ or a single `Buffer`, `TypedArray`, or `DataView` containing the supported
1710+ ALPN protocols. Buffers should have the format `[len][name][len][name]...`
17131711 e.g. `'\x08http/1.1\x08http/1.0'`, where the `len` byte is the length of the
17141712 next protocol name. Passing an array is usually much simpler, e.g.
17151713 `['http/1.1', 'http/1.0']`. Protocols earlier in the list have higher
@@ -2120,11 +2118,9 @@ changes:
21202118-->
21212119
21222120* `options` {Object}
2123- * `ALPNProtocols` {string\[]|Buffer\[]|TypedArray\[]|DataView\[]|Buffer|
2124- TypedArray|DataView}
2125- An array of strings, `Buffer`s, `TypedArray`s, or `DataView`s, or a single
2126- `Buffer`, `TypedArray`, or `DataView` containing the supported ALPN
2127- protocols. `Buffer`s should have the format `[len][name][len][name]...`
2121+ * `ALPNProtocols` {string\[]|Buffer|TypedArray|DataView} An array of strings,
2122+ or a single `Buffer`, `TypedArray`, or `DataView` containing the supported
2123+ ALPN protocols. Buffers should have the format `[len][name][len][name]...`
21282124 e.g. `0x05hello0x05world`, where the first byte is the length of the next
21292125 protocol name. Passing an array is usually much simpler, e.g.
21302126 `['hello', 'world']`. (Protocols should be ordered by their priority.)
0 commit comments