Type alias IBaseProtocolSDK

IBaseProtocolSDK: {
    connectedPeers: Peer[];
    numPeersToUse: number;
    renewPeer: ((peerToDisconnect) => Promise<Peer | undefined>);
}

Type declaration

  • Readonly connectedPeers: Peer[]
  • Readonly numPeersToUse: number
  • renewPeer: ((peerToDisconnect) => Promise<Peer | undefined>)
      • (peerToDisconnect): Promise<Peer | undefined>
      • Parameters

        • peerToDisconnect: PeerId

        Returns Promise<Peer | undefined>