Optional
maxOptional
maxOptional
negotiateWhen false, and only a single protocol is being negotiated, use optimistic select to send both the protocol name and the first data buffer in the initial message, saving a round trip for connection establishment.
true
Optional
signalOptional
yieldAfter the stream is unwrapped, any bytes that have been read from the
incoming stream will be yielded in-order as Uint8Array
(s).
To yield a single Uint8ArrayList
with all unread bytes instead, pass
false
here.
Optional
lengthOptional
length
An object that contains an AbortSignal as the optional
signal
property.Example