tls, doc: documentation mentions unexisting clientError event

  • Version: 8.0.0, 7.10.0, 6.10.3
  • Subsystem: tls, doc

Before 1ab6b21 (before 6.0.0) there was a clientError event in tls module. Since 6.0.0, it was renamed to tlsClientError, and atm there are no mentions of clientError in the code of the tls module.

But https://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener states

A 'clientError' is emitted on the tls.Server object whenever a handshake times out.

I think that's a documentation error.

I didn't re-check, though, so this should be rechecked before fixing the docs.

/cc @indutny