Skip to content

Commit 4883904

Browse files
prettydiffbengl
authored andcommitted
doc: clarify tls.Server 'connection' event documentation
PR-URL: #41917 Fixes: #41880 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 1c404bd commit 4883904

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/tls.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,9 @@ added: v0.3.2
480480
* `socket` {stream.Duplex}
481481

482482
This event is emitted when a new TCP stream is established, before the TLS
483-
handshake begins. `socket` is typically an object of type [`net.Socket`][].
484-
Usually users will not want to access this event.
483+
handshake begins. `socket` is typically an object of type [`net.Socket`][] but
484+
will not receive events unlike the socket created from the [`net.Server`][]
485+
`'connection'` event. Usually users will not want to access this event.
485486

486487
This event can also be explicitly emitted by users to inject connections
487488
into the TLS server. In that case, any [`Duplex`][] stream can be passed.

0 commit comments

Comments
 (0)