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.
Optionaloptions: 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.
Remove a previously configured transport
The transport key or identifier.
A promise that resolves once the transport is removed.
The
TransportManagerhandles 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
ConnectionManageror included in any configured connection limits, etc.Most consumers will call
openConnectionon theConnectionManagerinstead.