diff --git a/doc/api/quic.md b/doc/api/quic.md index 723c26c5bd0b99..b43a7485a6aeb3 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -40,8 +40,8 @@ import { connect } from 'node:quic'; import { Buffer } from 'node:buffer'; const enc = new TextEncoder(); -const alpn = 'foo'; -const client = await connect('123.123.123.123:8888', { alpn }); +const protocol = 'foo'; +const client = await connect('123.123.123.123:8888', { protocol }); await client.createUnidirectionalStream({ body: enc.encode('hello world'), }); @@ -1110,16 +1110,6 @@ while establishing a new connection. added: v23.8.0 --> -#### `sessionOptions.alpn` - - - -* Type: {string} - -The ALPN protocol identifier. - #### `sessionOptions.ca` + +* Type: {string} + +The ALPN protocol identifier. This option specifies the application layer protocol +negotiation (ALPN) protocol to use for the session. Common values include `'h3'` for +HTTP/3, `'h2'` for HTTP/2, or custom protocol identifiers. + #### `sessionOptions.qlog`