- Preparing search index...
- The search index is not available
@waku/root
Function selectPeerForProtocol
- selectPeerForProtocol(peerStore: PeerStore, protocols: string[], peerId?: PeerId): Promise<{
peer: Peer;
protocol: string;
} | undefined>
-
Parameters
-
peerStore: PeerStore
-
protocols: string[]
-
Optional
peerId: PeerId
Returns Promise<{
peer: Peer;
protocol: string;
} | undefined>