diff --git a/doc/api/quic.md b/doc/api/quic.md index ad400bf225b974..8e3413f4a61db8 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -755,6 +755,8 @@ added: REPLACEME The current application-level options for this session. These include settings that are specific to the negotiated application protocol (e.g. HTTP/3) and may be negotiated separately from the transport parameters. Read only. +You can use the callback [`session.onapplication`][] to be informed, when settings +from the remote arrive. ### `session.close([options])` @@ -887,6 +889,16 @@ added: v23.8.0 The endpoint that created this session. Returns `null` if the session has been destroyed. Read only. +### `session.onapplication` + + + +* Type: {quic.OnApplicationCallback} + +The callback to invoke when new application options, e.g. HTTP/3 settings arrived. + ### `session.onerror` + +* `this` {quic.QuicSession} +* `applicationoption` {quic.QuicSession} + +The callback function that is invoked when application options change. +E.g. for http/3 settings are included in applications options and +may arrive after the connection is established. + ### Callback: `OnPathValidationCallback` + +* `applicationoptions` {quic.ApplicationOptions} Current application options. +* `session` {quic.QuicSession} + +Published when a locally-initiated stream is opened. + ### Channel: `quic.session.created.client`