- Preparing search index...
- The search index is not available
@waku/root
Function getPeersForProtocol
- getPeersForProtocol(peerStore: PeerStore, protocols: string[]): Promise<Peer[]>
-
Parameters
-
peerStore: PeerStore
-
protocols: string[]
Returns Promise<Peer[]>
Returns the list of peers that supports the given protocol.