Type Parameters Jump to heading
Jump to headingZRTT extends booleanProperties Jump to heading
Jump to headingport: numberThe port to connect to.
Jump to headinghostname: stringA literal IP address or host name that can be resolved to an IP address.
optional
Jump to headingserverName: string | undefinedThe 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: QuicEndpointIf no endpoint is provided, a new one is bound on an ephemeral port.
optional
Jump to headingzeroRtt: ZRTT = falseAttempt to convert the connection into 0-RTT. Any data sent before the TLS handshake completes is vulnerable to replay attacks.