diff --git a/doc/api/errors.md b/doc/api/errors.md index e1e1b92f654505..f4a7d28f6baf78 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -2698,6 +2698,17 @@ This error represents a failed test. Additional information about the failure is available via the `cause` property. The `failureType` property specifies what the test was doing when the failure occurred. + + +### `ERR_TLS_ALPN_FALLBACK_WITHOUT_PROTOCOLS` + +This error is thrown when creating a `TLSServer` if the TLS options sets +`enableALPNFallback` to `true` without providing an `ALPNProtocols` argument. + +When `ALPNProtocols` is not provided, ALPN is skipped entirely, so the fallback +would not be functional. To enable ALPN for all protocols, using the fallback +in all cases, set `ALPNProtocols` to an empty array instead. + ### `ERR_TLS_CERT_ALTNAME_FORMAT` diff --git a/doc/api/tls.md b/doc/api/tls.md index a9b23fc97501fc..829893ab4e7904 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -2012,6 +2012,9 @@ where `secureSocket` has the same API as `pair.cleartext`.