| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -952,6 +952,18 @@ The listener callback is passed a single argument when called: | |||
| 952 | 952 | Typically, the `response` is a digitally signed object from the server's CA that | |
| 953 | 953 | contains information about server's certificate revocation status. | |
| 954 | 954 | ||
| 955 | + ### Event: `'secure'` | ||
| 956 | + | ||
| 957 | + <!-- YAML | ||
| 958 | + added: v0.11.4 | ||
| 959 | + --> | ||
| 960 | + | ||
| 961 | + The `'secure'` event is emitted after the TLS handshake has successfully | ||
| 962 | + completed and a secure connection has been established. | ||
| 963 | + | ||
| 964 | + This event is emitted on both client and server {tls.TLSSocket} instances, | ||
| 965 | + including sockets created using the `new tls.TLSSocket()` constructor. | ||
| 966 | + | ||
| 955 | 967 | ### Event: `'secureConnect'` | |
| 956 | 968 | ||
| 957 | 969 | <!-- YAML | |
@@ -1530,7 +1542,7 @@ changes: | |||
| 1530 | 1542 | * `requestCert` | |
| 1531 | 1543 | ||
| 1532 | 1544 | * `callback` {Function} If `renegotiate()` returned `true`, callback is | |
| 1533 | - attached once to the `'secure'` event. If `renegotiate()` returned `false`, | ||
| 1545 | + attached once to the [`'secure'`][] event. If `renegotiate()` returned `false`, | ||
| 1534 | 1546 | `callback` will be called in the next tick with an error, unless the | |
| 1535 | 1547 | `tlsSocket` has been destroyed, in which case `callback` will not be called | |
| 1536 | 1548 | at all. | |
@@ -2458,6 +2470,7 @@ added: v0.11.3 | |||
| 2458 | 2470 | [TLS recommendations]: https://wiki.mozilla.org/Security/Server_Side_TLS | |
| 2459 | 2471 | [`'newSession'`]: #event-newsession | |
| 2460 | 2472 | [`'resumeSession'`]: #event-resumesession | |
| 2473 | + [`'secure'`]: #event-secure | ||
| 2461 | 2474 | [`'secureConnect'`]: #event-secureconnect | |
| 2462 | 2475 | [`'secureConnection'`]: #event-secureconnection | |
| 2463 | 2476 | [`'session'`]: #event-session | |
| Back | FazBrowse Home | New Git URL |
0 commit comments