'tlsClientError' 事件
在建立安全连接之前发生错误时会触发 'tlsClientError'
事件。
监听器回调在调用时传入两个参数:
exception
<Error> 描述错误的Error
对象tlsSocket
<tls.TLSSocket> 错误源自的tls.TLSSocket
实例。
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> TheError
object describing the errortlsSocket
<tls.TLSSocket> Thetls.TLSSocket
instance from which the error originated.