Quic
Node.js quic module — QUIC transport protocol (experimental).
Module:node:quic
Support: Experimental
Since: 1.1.0
Docs: Node.js Docs
3 members: 1 supported, 2 partial
Static Methods
Properties
Constants for congestion control, cipher suites, and key exchange groups.
Dictionary QuicListenOptions
Options for listening on a QUIC endpoint.
Since: 1.1.0 Docs: Node.js Docs14 members: 1 partial, 13 undocumented
Properties
Options for listening on a QUIC endpoint.
Local port to bind to.
TLS certificate chain (PEM string or Buffer).
TLS certificate chain (PEM string or Buffer).
List of ALPN protocol names in preference order.
Trusted CA certificate(s) (PEM string, Buffer, or array).
Congestion control algorithm (e.g. "reno", "cubic", "bbr").
Initial maximum data that can be sent on the connection (bytes).
Initial maximum data that can be sent on a locally-initiated bidirectional stream (bytes).
Initial maximum data that can be sent on a remotely-initiated bidirectional stream (bytes).
Initial maximum data that can be sent on a unidirectional stream (bytes).
Initial maximum number of bidirectional streams the peer may open.
Initial maximum number of unidirectional streams the peer may open.
Idle timeout in milliseconds.
---
Dictionary QuicConnectOptions
Options for connecting to a QUIC endpoint.
Since: 1.1.0 Docs: Node.js Docs9 members: 1 partial, 8 undocumented
Properties
Options for listening on a QUIC endpoint.
List of ALPN protocol names in preference order.
Server name for SNI (defaults to the address).
Trusted CA certificate(s) (PEM string, Buffer, or array).
TLS certificate chain (PEM string or Buffer).
TLS certificate chain (PEM string or Buffer).
If true, rejects unauthorized server certificates (default: true).
Congestion control algorithm (e.g. "reno", "cubic", "bbr").
Idle timeout in milliseconds.
---
Dictionary QuicStreamOptions
Options for opening a QUIC stream.
Since: 1.1.0 Docs: Node.js Docs1 members: 1 undocumented
Properties
Initial maximum data that can be sent on a remotely-initiated bidirectional stream (bytes).
---
Interface QuicEndpoint
A QUIC endpoint that can accept or initiate connections. Extends EventEmitter; emits 'session', 'close', 'error' events.
Extends: EventEmitter Implements: EventEmitter Since: 1.1.0 Docs: Node.js Docs5 members: 4 partial, 1 undocumented
Methods
Properties
The current state of the endpoint ("initial", "listening", "connected", "closing", "closed").
Local port to bind to.
---
Interface QuicSession
Represents a QUIC connection/session between two endpoints. Extends EventEmitter; emits 'stream', 'close', 'error', 'keylog' events.
Extends: EventEmitter Implements: EventEmitter Since: 1.1.0 Docs: Node.js Docs7 members: 7 partial
Methods
Properties
The current state of the endpoint ("initial", "listening", "connected", "closing", "closed").
The negotiated ALPN protocol, or null if not yet negotiated.
The remote peer address, or null if not connected.
---
Interface QuicStream
Opens a new QUIC stream on this session.
Extends: EventEmitter Implements: EventEmitter5 members: 5 partial
Methods
Properties
The stream identifier assigned by the QUIC connection.
The current state of the endpoint ("initial", "listening", "connected", "closing", "closed").
---