事件:'tlsClientError'
¥Event: 'tlsClientError'
在建立安全连接之前发生错误时会触发 '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> TheError
object describing the error -
tlsSocket
<tls.TLSSocket> 错误源自的tls.TLSSocket
实例。¥
tlsSocket
<tls.TLSSocket> Thetls.TLSSocket
instance from which the error originated.