interface StreamHandlerOptions {
    maxInboundStreams?: number;
    maxOutboundStreams?: number;
    runOnLimitedConnection?: boolean;
}

Properties

maxInboundStreams?: number

How many incoming streams can be open for this protocol at the same time on each connection

Default

32
maxOutboundStreams?: number

How many outgoing streams can be open for this protocol at the same time on each connection

Default

64
runOnLimitedConnection?: boolean

If true, allow this protocol to run on limited connections (e.g. connections with data or duration limits such as circuit relay connections)

Default

false