doc: add description for the listener argument
Clarify that `listener` is registered as a one-time listener of the `'connect'` event. PR-URL: https://github.com/nodejs/node/pull/28500 Fixes: https://github.com/nodejs/node/issues/28217 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
This commit is contained in:
parent
04cf20261f
commit
8850ef276a
@ -2208,7 +2208,8 @@ changes:
|
||||
instance passed to `connect` and the `options` object, and returns any
|
||||
[`Duplex`][] stream that is to be used as the connection for this session.
|
||||
* ...: Any [`net.connect()`][] or [`tls.connect()`][] options can be provided.
|
||||
* `listener` {Function}
|
||||
* `listener` {Function} Will be registered as a one-time listener of the
|
||||
[`'connect'`][] event.
|
||||
* Returns: {ClientHttp2Session}
|
||||
|
||||
Returns a `ClientHttp2Session` instance.
|
||||
@ -3467,6 +3468,7 @@ following additional properties:
|
||||
[Stream]: stream.html#stream_stream
|
||||
[Using `options.selectPadding()`]: #http2_using_options_selectpadding
|
||||
[`'checkContinue'`]: #http2_event_checkcontinue
|
||||
[`'connect'`]: #http2_event_connect
|
||||
[`'request'`]: #http2_event_request
|
||||
[`'unknownProtocol'`]: #http2_event_unknownprotocol
|
||||
[`ClientHttp2Stream`]: #http2_class_clienthttp2stream
|
||||
|
Loading…
x
Reference in New Issue
Block a user