| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1727,6 +1727,20 @@ the request body. | |||
| 1727 | 1727 | When this event is emitted and handled, the [`'request'`][] event will | |
| 1728 | 1728 | not be emitted. | |
| 1729 | 1729 | ||
| 1730 | + ### Event: `'connection'` | ||
| 1731 | + <!-- YAML | ||
| 1732 | + added: v8.4.0 | ||
| 1733 | + --> | ||
| 1734 | + | ||
| 1735 | + * `socket` {stream.Duplex} | ||
| 1736 | + | ||
| 1737 | + This event is emitted when a new TCP stream is established. `socket` is | ||
| 1738 | + typically an object of type [`net.Socket`][]. Usually users will not want to | ||
| 1739 | + access this event. | ||
| 1740 | + | ||
| 1741 | + This event can also be explicitly emitted by users to inject connections | ||
| 1742 | + into the HTTP server. In that case, any [`Duplex`][] stream can be passed. | ||
| 1743 | + | ||
| 1730 | 1744 | #### Event: `'request'` | |
| 1731 | 1745 | <!-- YAML | |
| 1732 | 1746 | added: v8.4.0 | |
@@ -1888,6 +1902,20 @@ the request body. | |||
| 1888 | 1902 | When this event is emitted and handled, the [`'request'`][] event will | |
| 1889 | 1903 | not be emitted. | |
| 1890 | 1904 | ||
| 1905 | + ### Event: `'connection'` | ||
| 1906 | + <!-- YAML | ||
| 1907 | + added: v8.4.0 | ||
| 1908 | + --> | ||
| 1909 | + | ||
| 1910 | + * `socket` {stream.Duplex} | ||
| 1911 | + | ||
| 1912 | + This event is emitted when a new TCP stream is established, before the TLS | ||
| 1913 | + handshake begins. `socket` is typically an object of type [`net.Socket`][]. | ||
| 1914 | + Usually users will not want to access this event. | ||
| 1915 | + | ||
| 1916 | + This event can also be explicitly emitted by users to inject connections | ||
| 1917 | + into the HTTP server. In that case, any [`Duplex`][] stream can be passed. | ||
| 1918 | + | ||
| 1891 | 1919 | #### Event: `'request'` | |
| 1892 | 1920 | <!-- YAML | |
| 1893 | 1921 | added: v8.4.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -379,6 +379,20 @@ added: v0.3.2 | |||
| 379 | 379 | ||
| 380 | 380 | Accepts encrypted connections using TLS or SSL. | |
| 381 | 381 | ||
| 382 | + ### Event: `'connection'` | ||
| 383 | + <!-- YAML | ||
| 384 | + added: v0.3.2 | ||
| 385 | + --> | ||
| 386 | + | ||
| 387 | + * `socket` {stream.Duplex} | ||
| 388 | + | ||
| 389 | + This event is emitted when a new TCP stream is established, before the TLS | ||
| 390 | + handshake begins. `socket` is typically an object of type [`net.Socket`][]. | ||
| 391 | + Usually users will not want to access this event. | ||
| 392 | + | ||
| 393 | + This event can also be explicitly emitted by users to inject connections | ||
| 394 | + into the TLS server. In that case, any [`Duplex`][] stream can be passed. | ||
| 395 | + | ||
| 382 | 396 | ### Event: `'keylog'` | |
| 383 | 397 | <!-- YAML | |
| 384 | 398 | added: | |
@@ -1981,6 +1995,7 @@ where `secureSocket` has the same API as `pair.cleartext`. | |||
| 1981 | 1995 | [`SSL_export_keying_material`]: https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html | |
| 1982 | 1996 | [`SSL_get_version`]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html | |
| 1983 | 1997 | [`crypto.getCurves()`]: crypto.html#crypto_crypto_getcurves | |
| 1998 | + [`Duplex`]: stream.html#stream_class_stream_duplex | ||
| 1984 | 1999 | [`net.createServer()`]: net.html#net_net_createserver_options_connectionlistener | |
| 1985 | 2000 | [`net.Server.address()`]: net.html#net_server_address | |
| 1986 | 2001 | [`net.Server`]: net.html#net_class_net_server | |
| Back | FazBrowse Home | New Git URL |
0 commit comments