File tree 2 files changed +43
-0
lines changed
2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -1714,6 +1714,20 @@ the request body.
1714
1714
When this event is emitted and handled, the [ ` 'request' ` ] [ ] event will
1715
1715
not be emitted.
1716
1716
1717
+ ### Event: ` 'connection' `
1718
+ <!-- YAML
1719
+ added: v8.4.0
1720
+ -->
1721
+
1722
+ * ` socket ` {stream.Duplex}
1723
+
1724
+ This event is emitted when a new TCP stream is established. ` socket ` is
1725
+ typically an object of type [ ` net.Socket ` ] [ ] . Usually users will not want to
1726
+ access this event.
1727
+
1728
+ This event can also be explicitly emitted by users to inject connections
1729
+ into the HTTP server. In that case, any [ ` Duplex ` ] [ ] stream can be passed.
1730
+
1717
1731
#### Event: ` 'request' `
1718
1732
<!-- YAML
1719
1733
added: v8.4.0
@@ -1854,6 +1868,20 @@ the request body.
1854
1868
When this event is emitted and handled, the [ ` 'request' ` ] [ ] event will
1855
1869
not be emitted.
1856
1870
1871
+ ### Event: ` 'connection' `
1872
+ <!-- YAML
1873
+ added: v8.4.0
1874
+ -->
1875
+
1876
+ * ` socket ` {stream.Duplex}
1877
+
1878
+ This event is emitted when a new TCP stream is established, before the TLS
1879
+ handshake begins. ` socket ` is typically an object of type [ ` net.Socket ` ] [ ] .
1880
+ Usually users will not want to access this event.
1881
+
1882
+ This event can also be explicitly emitted by users to inject connections
1883
+ into the HTTP server. In that case, any [ ` Duplex ` ] [ ] stream can be passed.
1884
+
1857
1885
#### Event: ` 'request' `
1858
1886
<!-- YAML
1859
1887
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: v12.3.0
@@ -1959,6 +1973,7 @@ where `secureSocket` has the same API as `pair.cleartext`.
1959
1973
[ `SSL_export_keying_material` ] : https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html
1960
1974
[ `SSL_get_version` ] : https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html
1961
1975
[ `crypto.getCurves()` ] : crypto.html#crypto_crypto_getcurves
1976
+ [ `Duplex` ] : stream.html#stream_class_stream_duplex
1962
1977
[ `net.createServer()` ] : net.html#net_net_createserver_options_connectionlistener
1963
1978
[ `net.Server.address()` ] : net.html#net_server_address
1964
1979
[ `net.Server` ] : net.html#net_class_net_server
You can’t perform that action at this time.
0 commit comments