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:
Austin Cheney 2022-02-12 05:49:03 -06:00 committed by GitHub
parent 863d13c192
commit dfacb80914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -480,8 +480,9 @@ added: v0.3.2
* `socket` {stream.Duplex} * `socket` {stream.Duplex}
This event is emitted when a new TCP stream is established, before the TLS 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`][]. handshake begins. `socket` is typically an object of type [`net.Socket`][] but
Usually users will not want to access this event. 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 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. into the TLS server. In that case, any [`Duplex`][] stream can be passed.