</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">Peer</span><spanclass="tsd-signature-symbol">[]</span><spanclass="tsd-signature-symbol">></span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Implementation of <ahref="../interfaces/_waku_interfaces.IPeerExchange.html">IPeerExchange</a>.<ahref="../interfaces/_waku_interfaces.IPeerExchange.html#allPeers">allPeers</a></p><p>Inherited from BaseProtocol.allPeers</p><ul><li>Defined in packages/core/dist/lib/base_protocol.d.ts:28</li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="connectedPeers"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>connected<wbr/>Peers</span><ahref="#connectedPeers"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="connectedPeers.connectedPeers-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">connected<wbr/>Peers</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">Peer</span><spanclass="tsd-signature-symbol">[]</span><spanclass="tsd-signature-symbol">></span><ahref="#connectedPeers.connectedPeers-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="#icon-anchor"></use></svg></a></li><liclass="tsd-description"><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">Peer</span><spanclass="tsd-signature-symbol">[]</span><spanclass="tsd-signature-symbol">></span></h4><asideclass="tsd-sources"><p>Implementation of <ahref="../interfaces/_waku_interfaces.IPeerExchange.html">IPeerExchange</a>.<ahref="../interfaces/_waku_interfaces.IPeerExchange.html#connectedPeers">connectedPeers</a></p><p>Inherited from BaseProtocol.connectedPeers</p><ul><li>Defined in packages/core/dist/lib/base_protocol.d.ts:29</li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-protected tsd-is-inherited"><aid="getPeers"class="tsd-anchor"></a><h3class="tsd-anchor-link"><codeclass="tsd-tag ts-flagProtected">Protected</code><span>get<wbr/>Peers</span><ahref="#getPeers"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures tsd-is-protected tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="getPeers.getPeers-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Peers</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">__namedParameters</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">Peer</span><spanclass="tsd-signature-symbol">[]</span><spanclass="tsd-signature-symbol">></span><ahref="#getPeers.getPeers-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Retrieves a list of connected peers that support the protocol. The list is sorted by latency.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><codeclass="tsd-tag ts-flagOptional">Optional</code><spanclass="tsd-kind-parameter">__namedParameters</span>: <spanclass="tsd-signature-symbol">{ </span><br/><span></span><spanclass="tsd-kind-property">maxBootstrapPeers</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol">; </span><br/><span></span><spanclass="tsd-kind-property">numPeers</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol">; </span><br/><spanclass="tsd-signature-symbol">}</span></span><ulclass="tsd-parameters"><liclass="tsd-parameter"><h5><spanclass="tsd-kind-property">max<wbr/>Bootstrap<wbr/>Peers</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span></h5></li><liclass="tsd-parameter"><h5><spanclass="tsd-kind-property">num<wbr/>Peers</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span></h5></li></ul></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">Peer</span><spanclass="tsd-signature-symbol">[]</span><spanclass="tsd-signature-symbol">></span></h4><p>A list of peers that support the protocol sorted by latency.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from BaseProtocol.getPeers</p><ul><li>Defined in packages/core/dist/lib/base_protocol.d.ts:38</li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-protected tsd-is-inherited"><aid="getStream"class="tsd-anchor"></a><h3class="tsd-anchor-link"><codeclass="tsd-tag ts-flagProtected">Protected</code><span>get<wbr/>Stream</span><ahref="#getStream"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures tsd-is-protected tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="getStream.getStream-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Stream</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">peer</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">Stream</span><spanclass="tsd-signature-symbol">></span><ahref="#getStream.getStream-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">peer</span>: <spanclass="tsd-signature-type">Peer</span></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">Stream</span><spanclass="tsd-signature-symbol">></span></h4><asideclass="tsd-sources"><p>Inherited from BaseProtocol.getStream</p><ul><li>Defined in packages/core/dist/lib/base_protocol.d.ts:21</li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="query"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>query</span><ahref="#query"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="query.query-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">query</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">params</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">undefined</span><spanclass="tsd-signature-symbol"> | </span><ahref="../interfaces/_waku_interfaces.PeerInfo.html"class="tsd-signature-type tsd-kind-interface">PeerInfo</a><spanclass="tsd-signature-symbol">[]</span><spanclass="tsd-signature-symbol">></span><ahref="#query.query-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Make a peer exchange query to a peer</p>