Automerge Repo - v2.3.0-alpha.0
    Preparing search index...

    Class NetworkAdapterAbstract

    An interface representing some way to connect to other peers

    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

    This utility class can be used as a base to build a custom network adapter. It is most useful as a simple way to add the necessary event emitter functionality

    Hierarchy

    Implements

    Index

    Constructors

    Properties

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

    Methods

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

      Parameters

      • Optionalevent: keyof NetworkAdapterEvents

      Returns this