Ende.ConnectQuicOptions
interface ยท experimental
interface Ende.ConnectQuicOptions<ZRTT extends boolean> extends QuicTransportOptionsUNSTABLE: New API, yet to be vetted.
Properties
port
port: numberThe port to connect to.
hostname
hostname: stringA literal IP address or host name that can be resolved to an IP address.
serverName
serverName?: string | undefinedThe name used for validating the certificate provided by the server. If
not provided, defaults to hostname.
alpnProtocols
alpnProtocols: string[]Application-Layer Protocol Negotiation (ALPN) protocols supported by the client. QUIC requires the use of ALPN.
caCerts
caCerts?: 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.
endpoint
endpoint?: QuicEndpointIf no endpoint is provided, a new one is bound on an ephemeral port.
zeroRtt
zeroRtt?: ZRTTAttempt to convert the connection into 0-RTT. Any data sent before the TLS handshake completes is vulnerable to replay attacks.
Default: false