OptionalforceIf true, and a handler is already registered for the specified
protocol(s), the existing handler will be discarded.
OptionalmaxHow many incoming streams can be open for this protocol at the same time on each connection
OptionalmaxHow many outgoing streams can be open for this protocol at the same time on each connection
OptionalmiddlewareMiddleware allows accessing stream data outside of the stream handler
OptionalrunOpt-in to running over connections with limits on how much data can be transferred or how long it can be open for.
Optionalsignal
An object that contains an AbortSignal as the optional
signalproperty.Example