Preparing search index...
The search index is not available
Documentation
Documentation
@waku/interfaces
IMetadata
Interface IMetadata
interface
IMetadata
{
addLibp2pEventListener
:
(
<
K
>
(
type
,
listener
,
options
?
)
=>
void
)
;
allPeers
:
(
(
)
=>
Promise
<
Peer
[]
>
)
;
connectedPeers
:
(
(
)
=>
Promise
<
Peer
[]
>
)
;
multicodec
:
string
;
pubsubTopics
:
string
[]
;
removeLibp2pEventListener
:
{
<
K
>
(
type
,
listener
?
,
options
?
)
:
void
;
(
type
,
listener
?
,
options
?
)
:
void
;
}
;
confirmOrAttemptHandshake
(
peerId
)
:
Promise
<
MetadataQueryResult
>
;
query
(
peerId
)
:
Promise
<
MetadataQueryResult
>
;
}
Hierarchy
Omit
<
IBaseProtocolCore
,
"shardInfo"
>
IMetadata
Index
Properties
add
Libp2p
Event
Listener
all
Peers
connected
Peers
multicodec
pubsub
Topics
remove
Libp2p
Event
Listener
Methods
confirm
Or
Attempt
Handshake
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
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
pubsub
Topics
pubsub
Topics
:
string
[]
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
Methods
confirm
Or
Attempt
Handshake
confirm
Or
Attempt
Handshake
(
peerId
)
:
Promise
<
MetadataQueryResult
>
Parameters
peerId
:
PeerId
Returns
Promise
<
MetadataQueryResult
>
query
query
(
peerId
)
:
Promise
<
MetadataQueryResult
>
Parameters
peerId
:
PeerId
Returns
Promise
<
MetadataQueryResult
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
add
Libp2p
Event
Listener
all
Peers
connected
Peers
multicodec
pubsub
Topics
remove
Libp2p
Event
Listener
confirm
Or
Attempt
Handshake
query
Documentation
Loading...