OptionalallowOptionalcongestionOptionalmax
Maximum reconnect attempts before closed settles.
Defaults to no limit.
OptionalonCalled when the managed connection closes without another reconnect.
OptionalonCalled with each incoming datagram.
OptionalonCalled when opening, reading, writing, or closing fails.
Optionalon
Called whenever the current native transport resolves
ready.
OptionalonCalled when a decoded datagram uses the realtime protocol shape.
OptionalonCalled after a replacement session is ready so callers can renegotiate state.
Optionalreconnect
Reopen the native WebTransport session when it closes unexpectedly.
OptionalrequireOptionalretryDelay before each reconnect attempt. Defaults to 1000ms.
OptionalserverOptionaltransform
Converts incoming datagram bytes into the value passed as
event.message.
Options passed to
$webTransport.