事件:'tlsClientError'
\Event: 'tlsClientError'
新增于: v6.0.0
在建立安全连接之前发生错误时会触发 'tlsClientError' 事件。监听器回调在调用时传入两个参数:
\The 'tlsClientError' event is emitted when an error occurs before a secure
connection is established. The listener callback is passed two arguments when
called:
-
exception<Error> 描述错误的Error对象\
exception<Error> TheErrorobject describing the error -
tlsSocket<tls.TLSSocket> 错误源自的tls.TLSSocket实例。\
tlsSocket<tls.TLSSocket> Thetls.TLSSocketinstance from which the error originated.