A convenience method for generating a new Connection
Attempts to encrypt the incoming connection
with the provided cryptos
.
Attempts to encrypt the given connection
with the provided cryptos
.
The first Crypto
module to succeed will be used
Registers support for one of the given muxers via multistream-select. The selected muxer will be used for all future streams on the connection.
Selects one of the given muxers via multistream-select. That muxer will be used for all future streams on the connection.
Routes incoming streams to the correct handler
Upgrades an inbound connection
Upgrades an outbound connection
{MultiaddrConnection} conn A duplex iterable
{PeerId} remotePeer
{string} protocol