mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: added 'secure' event to tls.TLSSocket
Fixes #61060 PR-URL: https://github.com/nodejs/node/pull/61066 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
8f8c6f6162
commit
c07c80717c
1 file changed
+14
-1
+14
-1
@@ -952,6 +952,18 @@ The listener callback is passed a single argument when called:
|
||||
Typically, the `response` is a digitally signed object from the server's CA that
|
||||
contains information about server's certificate revocation status.
|
||||
|
||||
### Event: `'secure'`
|
||||
|
||||
<!-- YAML
|
||||
added: v0.11.4
|
||||
-->
|
||||
|
||||
The `'secure'` event is emitted after the TLS handshake has successfully
|
||||
completed and a secure connection has been established.
|
||||
|
||||
This event is emitted on both client and server {tls.TLSSocket} instances,
|
||||
including sockets created using the `new tls.TLSSocket()` constructor.
|
||||
|
||||
### Event: `'secureConnect'`
|
||||
|
||||
<!-- YAML
|
||||
@@ -1530,7 +1542,7 @@ changes:
|
||||
* `requestCert`
|
||||
|
||||
* `callback` {Function} If `renegotiate()` returned `true`, callback is
|
||||
attached once to the `'secure'` event. If `renegotiate()` returned `false`,
|
||||
attached once to the [`'secure'`][] event. If `renegotiate()` returned `false`,
|
||||
`callback` will be called in the next tick with an error, unless the
|
||||
`tlsSocket` has been destroyed, in which case `callback` will not be called
|
||||
at all.
|
||||
@@ -2458,6 +2470,7 @@ added: v0.11.3
|
||||
[TLS recommendations]: https://wiki.mozilla.org/Security/Server_Side_TLS
|
||||
[`'newSession'`]: #event-newsession
|
||||
[`'resumeSession'`]: #event-resumesession
|
||||
[`'secure'`]: #event-secure
|
||||
[`'secureConnect'`]: #event-secureconnect
|
||||
[`'secureConnection'`]: #event-secureconnection
|
||||
[`'session'`]: #event-session
|
||||
|
||||
Reference in new issue
Block a user