Preparing search index...
The search index is not available
Documentation
Documentation
@waku/interfaces
IStore
Interface IStore
interface
IStore
{
addLibp2pEventListener
:
(
<
K
>
(
type
,
listener
,
options
?
)
=>
void
)
;
allPeers
:
(
(
)
=>
Promise
<
Peer
[]
>
)
;
connectedPeers
:
(
(
)
=>
Promise
<
Peer
[]
>
)
;
multicodec
:
string
;
peerStore
:
PeerStore
;
queryGenerator
:
(
<
T
>
(
decoders
,
options
?
)
=>
AsyncGenerator
<
Promise
<
undefined
|
T
>
[]
,
any
,
unknown
>
)
;
queryWithOrderedCallback
:
(
<
T
>
(
decoders
,
callback
,
options
?
)
=>
Promise
<
void
>
)
;
queryWithPromiseCallback
:
(
<
T
>
(
decoders
,
callback
,
options
?
)
=>
Promise
<
void
>
)
;
removeLibp2pEventListener
:
{
<
K
>
(
type
,
listener
?
,
options
?
)
:
void
;
(
type
,
listener
?
,
options
?
)
:
void
;
}
;
shardInfo
?:
ShardInfo
;
}
Hierarchy (
view full
)
IBaseProtocol
IStore
Index
Properties
add
Libp2p
Event
Listener
all
Peers
connected
Peers
multicodec
peer
Store
query
Generator
query
With
Ordered
Callback
query
With
Promise
Callback
remove
Libp2p
Event
Listener
shard
Info?
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
all
Peers
all
Peers
:
(
(
)
=>
Promise
<
Peer
[]
>
)
Type declaration
(
)
:
Promise
<
Peer
[]
>
Returns
Promise
<
Peer
[]
>
connected
Peers
connected
Peers
:
(
(
)
=>
Promise
<
Peer
[]
>
)
Type declaration
(
)
:
Promise
<
Peer
[]
>
Returns
Promise
<
Peer
[]
>
multicodec
multicodec
:
string
peer
Store
peer
Store
:
PeerStore
query
Generator
query
Generator
:
(
<
T
>
(
decoders
,
options
?
)
=>
AsyncGenerator
<
Promise
<
undefined
|
T
>
[]
,
any
,
unknown
>
)
Type declaration
<
T
>
(
decoders
,
options
?
)
:
AsyncGenerator
<
Promise
<
undefined
|
T
>
[]
,
any
,
unknown
>
Type Parameters
T
extends
IDecodedMessage
Parameters
decoders
:
IDecoder
<
T
>
[]
Optional
options
:
StoreQueryOptions
Returns
AsyncGenerator
<
Promise
<
undefined
|
T
>
[]
,
any
,
unknown
>
query
With
Ordered
Callback
query
With
Ordered
Callback
:
(
<
T
>
(
decoders
,
callback
,
options
?
)
=>
Promise
<
void
>
)
Type declaration
<
T
>
(
decoders
,
callback
,
options
?
)
:
Promise
<
void
>
Type Parameters
T
extends
IDecodedMessage
Parameters
decoders
:
IDecoder
<
T
>
[]
callback
:
(
(
message
)
=>
boolean
|
void
|
Promise
<
boolean
|
void
>
)
(
message
)
:
boolean
|
void
|
Promise
<
boolean
|
void
>
Parameters
message
:
T
Returns
boolean
|
void
|
Promise
<
boolean
|
void
>
Optional
options
:
StoreQueryOptions
Returns
Promise
<
void
>
query
With
Promise
Callback
query
With
Promise
Callback
:
(
<
T
>
(
decoders
,
callback
,
options
?
)
=>
Promise
<
void
>
)
Type declaration
<
T
>
(
decoders
,
callback
,
options
?
)
:
Promise
<
void
>
Type Parameters
T
extends
IDecodedMessage
Parameters
decoders
:
IDecoder
<
T
>
[]
callback
:
(
(
message
)
=>
boolean
|
void
|
Promise
<
boolean
|
void
>
)
(
message
)
:
boolean
|
void
|
Promise
<
boolean
|
void
>
Parameters
message
:
Promise
<
undefined
|
T
>
Returns
boolean
|
void
|
Promise
<
boolean
|
void
>
Optional
options
:
StoreQueryOptions
Returns
Promise
<
void
>
remove
Libp2p
Event
Listener
remove
Libp2p
Event
Listener
:
{
<
K
>
(
type
,
listener
?
,
options
?
)
:
void
;
(
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
(
type
,
listener
?
,
options
?
)
:
void
Parameters
type
:
string
Optional
listener
:
EventHandler
<
Event
>
Optional
options
:
boolean
|
EventListenerOptions
Returns
void
Optional
shard
Info
shard
Info
?:
ShardInfo
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
add
Libp2p
Event
Listener
all
Peers
connected
Peers
multicodec
peer
Store
query
Generator
query
With
Ordered
Callback
query
With
Promise
Callback
remove
Libp2p
Event
Listener
shard
Info
Documentation
@waku
interfaces
utils
message-hash
proto
enr
core
relay
peer-exchange
dns-discovery
local-discovery
message-encryption
sdk
browser-tests
Generated using
TypeDoc