secureConnect event (tls.TLSSocket)

Event: 'secureConnect'

This event is emitted after the handshaking process for a new connection has successfully completed. The listener will be called regardless of whether or not the server's certificate has been authorized. It is the user's responsibility to test tlsSocket.authorized to see if the server certificate was signed by one of the specified CAs. If tlsSocket.authorized === false then the error can be found in tlsSocket.authorizationError. Also, if either ALPN or NPN was used tlsSocket.alpnProtocol or tlsSocket.npnProtocol can be checked for the negotiated protocol.

doc_Nodejs
2016-04-30 04:42:16
Comments
Leave a Comment

Please login to continue.