Optional
directionOptional
enableUsed to do periodic keep alive messages using a ping.
Optional
initialUsed to control the initial window size that we allow for a stream.
measured in bytes
Optional
keepHow often to perform the keep alive
measured in milliseconds
Optional
maxMaximum number of concurrent inbound streams that we accept. If the peer tries to open more streams, those will be reset immediately.
Optional
maxMaximum size of a message that we'll send on a stream. This ensures that a single stream doesn't hog a connection.
Optional
maxMaximum number of concurrent outbound streams that we accept.
If the application tries to open more streams, the call to newStream
will throw
Optional
maxUsed to control the maximum window size that we allow for a stream.
Optional
onA callback function invoked every time an incoming stream is opened
Optional
on
Outbound stream muxers are opened by the local node, inbound stream muxers are opened by the remote