An interface representing some way to connect to other peers

Deprecated

use NetworkAdapterInterface

Remarks

The Repo uses one or more NetworkAdapters to connect to other peers. Because the network may take some time to be ready the Repo will wait until the adapter emits a ready event before it starts trying to use it

Hierarchy

Implements

Constructors

Properties

peerId?: PeerId
peerMetadata?: PeerMetadata
prefixed: string | boolean

Methods

  • Return the listeners registered for a given event.

    Type Parameters

    Parameters

    • event: T

    Returns ((...args) => void)[]

  • Remove all listeners, or those of the specified event.

    Parameters

    • Optional event: keyof NetworkAdapterEvents

    Returns this

Generated using TypeDoc