GeezerVison is showing github.com — doc: clarify `tls.Server` `'connection'` event documentation · nodejs/node@4883904
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/tls.md +3-2Lines changed: 3 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -480,8 +480,9 @@ added: v0.3.2 |
480 | 480 | * `socket` {stream.Duplex} |
481 | 481 |
|
482 | 482 | 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. |
485 | 486 |
|
486 | 487 | This event can also be explicitly emitted by users to inject connections |
487 | 488 | into the TLS server. In that case, any [`Duplex`][] stream can be passed. |
|