The peer to connect to (PeerId or multiaddr)
Array of protocol codec strings to establish
Promise resolving to a Stream connection to the peer
Retrieves a list of currently connected peers, optionally filtered by protocol codec. Results are sorted by ping time (lowest first).
Optionalcodec: stringOptional protocol codec to filter peers by
Promise resolving to an array of connected Peer objects
Terminates the connection to a specific peer.
The peer to disconnect from (PeerId or multiaddr)
Promise resolving to true if disconnection was successful, false otherwise
Checks if a peer has shard info.
The peer to check
Promise resolving to true if the peer has shard info, false otherwise
Returns true if the passed peer is on the passed shard
Returns true if the passed peer is on the passed pubsub topic
Connects to a peer using specific protocol codecs. This is a direct proxy to libp2p's dialProtocol method.