mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: clarify tls.Server 'connection' event documentation
PR-URL: https://github.com/nodejs/node/pull/41917 Fixes: https://github.com/nodejs/node/issues/41880 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
24b0a563a4
commit
b0e8ccb84c
1 file changed
+3
-2
+3
-2
@@ -480,8 +480,9 @@ added: v0.3.2
|
||||
* `socket` {stream.Duplex}
|
||||
|
||||
This event is emitted when a new TCP stream is established, before the TLS
|
||||
handshake begins. `socket` is typically an object of type [`net.Socket`][].
|
||||
Usually users will not want to access this event.
|
||||
handshake begins. `socket` is typically an object of type [`net.Socket`][] but
|
||||
will not receive events unlike the socket created from the [`net.Server`][]
|
||||
`'connection'` event. Usually users will not want to access this event.
|
||||
|
||||
This event can also be explicitly emitted by users to inject connections
|
||||
into the TLS server. In that case, any [`Duplex`][] stream can be passed.
|
||||
|
||||
Reference in new issue
Block a user