nativeQuicTransport
function nativeQuicTransport(options?): NativeQuicTransportFactory;Defined in: relay-quic/src/index.ts:107
A transport factory for the SDK’s createTransport option that connects over native QUIC from Node:
import { connectRelayPublisher } from '@caprid/relay';import { nativeQuicTransport } from '@caprid/relay-quic';
const publisher = await connectRelayPublisher({ url, getToken, createTransport: nativeQuicTransport() });Throws at once when anticipatedConcurrentIncomingUnidirectionalStreams is not an integer from 1 to 65535,
qlogDir is not a string or cannot be created, the native addon is missing for this platform, a ca entry holds no
PEM certificate, or a certificate hash is not a 32-byte SHA-256.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
NativeQuicTransportOptions |