From eff8c3e02417652b78436eaa10d049e8c60e5275 Mon Sep 17 00:00:00 2001 From: Tyler Henkel Date: Tue, 10 Nov 2015 12:33:36 -0700 Subject: [PATCH] doc: add note on tls connection meta data methods PR-URL: https://github.com/nodejs/node/pull/3746 Reviewed-By: Ben Noordhuis --- doc/api/tls.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/tls.markdown b/doc/api/tls.markdown index 8e64bc98a09..f105614962e 100644 --- a/doc/api/tls.markdown +++ b/doc/api/tls.markdown @@ -764,6 +764,10 @@ of written data and all required TLS negotiation. This instance implements a duplex [Stream][] interfaces. It has all the common stream methods and events. +Methods that return TLS connection meta data (e.g. +[getPeerCertificate](#tlssocketgetpeercertificate-detailed-)) +will only return data while the connection is open. + ### Event: 'secureConnect' This event is emitted after a new connection has been successfully handshaked.