Transport that can be used to connect peers together. Transports are how
Peers are discovered and connected to. An implementation of this
interface must support being started and stopped and should report peers
via the onPeerConnect event.
To simplify implementation transports are commonly implemented via
AbstractTransport which takes care of the event firing and stopping
active peers when the transport is being stopped.
options describing some details about how to join the network, such
as the identifier of this node, the network name and if joining as
a client or not.
Returns Promise<boolean>
promise returning if the transport was started or not
stop
stop(): Promise<boolean>
Stop this transport.
Returns Promise<boolean>
promise returning if the transport was stopped or not
Transport that can be used to connect peers together. Transports are how Peers are discovered and connected to. An implementation of this interface must support being started and stopped and should report peers via the onPeerConnect event.
To simplify implementation transports are commonly implemented via AbstractTransport which takes care of the event firing and stopping active peers when the transport is being stopped.