Readonly
[initProtected
_closedReadonly
closedPProtected
configReadonly
connectionReadonly
isProtected
loggerProtected
resolveProtected
socketProtected
handleHandles EventQUICClientClose
.
Registered once.
This event propagates errors minus the internal errors. All QUIC connections always close with an error, even if it is a graceful.
If this event is dispatched first before QUICClient.destroy
, it represents
an evented close. This could originate from the QUICSocket
or
QUICConnection
. If it was from the QUICSocket
, then here it will stop
the QUICConnection
with an transport code InternalError
. If it was
from QUICConnection
, then the QUICConnection
will already be closing.
Therefore attempting to stop the QUICConnection
will be idempotent.
Protected
handleHandles EventQUICClientError
.
This event propagates all errors from QUICClient
and QUICConnection
.
This means you can expect that QUICConnection
errors will be logged
twice.
Internal errors will be thrown upwards to become an uncaught exception.
Protected
handleProtected
handleProtected
handleProtected
handleProtected
handleProtected
handleStatic
createQUICClientCreates a QUIC client.
Optional
codemaps stream error codes to reasons
Optional
config?: Partial<QUICConfig>defaults to clientDefault
client needs to generate random bytes
target host where wildcards are resolved to point locally.
Optional
ipv6force using IPv6 even when using ::
Optional
localdefaults to ::
(dual-stack)
Optional
localdefaults 0
Optional
logger?: Loggertarget port
Optional
reasonmaps stream error reasons to stream error codes
Optional
resolvedefaults to using OS DNS resolver
Optional
reusereuse existing port
Optional
ctx: Partial<ContextTimedInput>Optional
codeOptional
config?: Partial<QUICConfig>Optional
ipv6Optional
logger?: LoggerOptional
reasonOptional
reuseOptional
ctx: Partial<ContextTimedInput>Generated using TypeDoc
Destroy the QUICClient.