Optional
forceIf true
, and a handler is already registered for the specified
protocol(s), the existing handler will be discarded.
Optional
maxHow many incoming streams can be open for this protocol at the same time on each connection
Optional
maxHow many outgoing streams can be open for this protocol at the same time on each connection
Optional
runOpt-in to running over connections with limits on how much data can be transferred or how long it can be open for.
Optional
signal
An object that contains an AbortSignal as the optional
signal
property.Example