The ALPN protocol identifier.
interface
quic.SessionOptions
interface SessionOptions
- ca?: ArrayBuffer | ArrayBufferView<ArrayBufferLike> | readonly unknown[]
The CA certificates to use for sessions.
- cc?: 'reno' | 'cubic' | 'bbr'
Specifies the congestion control algorithm that will be used. Must be set to one of either
'reno','cubic', or'bbr'.This is an advanced option that users typically won't have need to specify.
- certs?: ArrayBuffer | ArrayBufferView<ArrayBufferLike> | readonly unknown[]
The TLS certificates to use for sessions.
- crl?: ArrayBuffer | ArrayBufferView<ArrayBufferLike> | readonly unknown[]
The CRL to use for sessions.
- handshakeTimeout?: number | bigint
Specifies the maximum number of milliseconds a TLS handshake is permitted to take to complete before timing out.
- minVersion?: number
The minimum QUIC version number to allow. This is an advanced option that users typically won't have need to specify.
- preferredAddressPolicy?: 'ignore' | 'default' | 'use'
When the remote peer advertises a preferred address, this option specifies whether to use it or ignore it.
- sessionTicket?: ArrayBufferView<ArrayBufferLike>
A session ticket to use for 0RTT session resumption.
- unacknowledgedPacketThreshold?: number | bigint
Specifies the maximum number of unacknowledged packets a session should allow.
- version?: number
The QUIC version number to use. This is an advanced option that users typically won't have need to specify.