Type alias IBaseProtocolCore

IBaseProtocolCore: {
    addLibp2pEventListener: Libp2p["addEventListener"];
    allPeers: (() => Promise<Peer[]>);
    connectedPeers: (() => Promise<Peer[]>);
    multicodec: string;
    removeLibp2pEventListener: Libp2p["removeEventListener"];
}

Type declaration

  • addLibp2pEventListener: Libp2p["addEventListener"]
  • allPeers: (() => Promise<Peer[]>)
      • (): Promise<Peer[]>
      • Returns Promise<Peer[]>

  • connectedPeers: (() => Promise<Peer[]>)
      • (): Promise<Peer[]>
      • Returns Promise<Peer[]>

  • multicodec: string
  • removeLibp2pEventListener: Libp2p["removeEventListener"]