A duplex iterable stream to dial on
A list of protocols (or single protocol) to negotiate with. Protocols are attempted in order until a match is made.
An options object containing an AbortSignal and an optional boolean writeBytes - if this is true, Uint8Arrays will be written into duplex, otherwise Uint8ArrayLists will
Optional options: ByteListInit
Negotiate a protocol to use from a list of protocols.
Returns
A stream for the selected protocol and the protocol that was selected from the list of protocols provided to
select.Example