diff --git a/doc/api/quic.md b/doc/api/quic.md index 91977bdaa67..ce030751450 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -934,6 +934,8 @@ added: v26.3.0 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])` @@ -1066,6 +1068,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`