Preparing search index...
The search index is not available
Documentation
Documentation
@waku/sdk
IPeerExchange
Interface IPeerExchange
Hierarchy
IBaseProtocol
IPeerExchange
Implemented by
Index
Properties
add
Libp2p
Event
Listener
multicodec
peer
Store
peers
remove
Libp2p
Event
Listener
Methods
query
Properties
add
Libp2p
Event
Listener
add
Libp2p
Event
Listener
:
(
<
K
>
(
type
,
listener
,
options
?
)
=>
void
)
Type declaration
<
K
>
(
type
,
listener
,
options
?
)
:
void
Type Parameters
K
extends
keyof
Libp2pEvents
<
ServiceMap
>
Parameters
type
:
K
listener
:
null
|
EventHandler
<
Libp2pEvents
<
ServiceMap
>
[
K
]
>
Optional
options
:
boolean
|
AddEventListenerOptions
Returns
void
multicodec
multicodec
:
string
peer
Store
peer
Store
:
PeerStore
peers
peers
:
(
(
)
=>
Promise
<
Peer
[]
>
)
Type declaration
(
)
:
Promise
<
Peer
[]
>
Returns
Promise
<
Peer
[]
>
remove
Libp2p
Event
Listener
remove
Libp2p
Event
Listener
:
(
<
K
>
(
type
,
listener
?
,
options
?
)
=>
void
)
Type declaration
<
K
>
(
type
,
listener
?
,
options
?
)
:
void
Type Parameters
K
extends
keyof
Libp2pEvents
<
ServiceMap
>
Parameters
type
:
K
Optional
listener
:
null
|
EventHandler
<
Libp2pEvents
<
ServiceMap
>
[
K
]
>
Optional
options
:
boolean
|
EventListenerOptions
Returns
void
Methods
query
query
(
params
)
:
Promise
<
undefined
|
PeerInfo
[]
>
Parameters
params
:
PeerExchangeQueryParams
Returns
Promise
<
undefined
|
PeerInfo
[]
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
add
Libp2p
Event
Listener
multicodec
peer
Store
peers
remove
Libp2p
Event
Listener
query
Documentation
@waku/interfaces - v0.0.18
@waku/utils - v0.0.11
@waku/proto - v0.0.5
@waku/enr - v0.0.17
@waku/core - v0.0.23
@waku/relay - v0.0.6
@waku/message-hash - v0.1.7
@waku/peer-exchange - v0.0.16
@waku/dns-discovery - v0.0.17
@waku/message-encryption - v0.0.21
@waku/sdk - v0.0.19
@waku/browser-tests
Generated using
TypeDoc