Add a transport to the transport manager.
The transport instance to be added.
Dial a multiaddr. Connections returned by this method will not be tracked by the connection manager so can cause memory leaks. If you need to dial a multiaddr, you may want to call openConnection on the connection manager instead.
The multiaddr to dial.
Optional
options: TransportManagerDialOptionsOptional dial options.
A promise that resolves to a Connection
object.
Get the transport to dial a given multiaddr, if one has been configured
The target multiaddr.
A Transport
instance if available, otherwise undefined
.
Return all registered transports
An array of Transport
instances.
Get the transport to listen on a given multiaddr, if one has been configured
The target multiaddr.
A Transport
instance if available, otherwise undefined
.
The
TransportManager
handles the management of network transports, allowing opening connections or listening using specific transports, etc.This is a low-level component - any connections opened will not be managed by the
ConnectionManager
or included in any configured connection limits, etc.Most consumers will call
openConnection
on theConnectionManager
instead.