Type Parameters Jump to heading
Jump to headingZRTT extends boolean
Properties Jump to heading
Jump to headingport: number
The port to connect to.
Jump to headinghostname: string
A literal IP address or host name that can be resolved to an IP address.
optional
Jump to headingserverName: string | undefined
The name used for validating the certificate provided by the server. If
not provided, defaults to hostname
.
Jump to headingalpnProtocols: string[]
Application-Layer Protocol Negotiation (ALPN) protocols supported by the client. QUIC requires the use of ALPN.
optional
Jump to headingcaCerts: string[]
A list of root certificates that will be used in addition to the default root certificates to verify the peer's certificate.
Must be in PEM format.
optional
Jump to headingendpoint: QuicEndpoint
If no endpoint is provided, a new one is bound on an ephemeral port.
optional
Jump to headingzeroRtt: ZRTT = false
Attempt to convert the connection into 0-RTT. Any data sent before the TLS handshake completes is vulnerable to replay attacks.