Preparing search index...
The search index is not available
Documentation
Documentation
@waku/local-peer-cache-discovery
LocalPeerCacheDiscovery
Class LocalPeerCacheDiscovery
Hierarchy
TypedEventEmitter
<
PeerDiscoveryEvents
>
LocalPeerCacheDiscovery
Implements
PeerDiscovery
Startable
Index
Constructors
constructor
Properties
#private
components
is
Started
options?
peers
Accessors
[to
String
Tag]
Methods
add
Event
Listener
dispatch
Event
get
Peers
From
Local
Storage
handle
New
Peers
listener
Count
remove
Event
Listener
safe
Dispatch
Event
save
Peers
To
Local
Storage
start
stop
Constructors
constructor
new
Local
Peer
Cache
Discovery
(
components
,
options
?
)
:
LocalPeerCacheDiscovery
Parameters
components
:
Components
Optional
options
:
LocalPeerCacheDiscoveryOptions
Returns
LocalPeerCacheDiscovery
Properties
Private
#private
#private
:
any
Private
Readonly
components
components
:
Components
Private
is
Started
is
Started
:
boolean
Private
Optional
Readonly
options
options
?:
LocalPeerCacheDiscoveryOptions
Private
peers
peers
:
LocalStoragePeerInfo
[]
= []
Accessors
[to
String
Tag]
get
[toStringTag]
(
)
:
string
Returns
string
Methods
add
Event
Listener
add
Event
Listener
<
K
>
(
type
,
listener
,
options
?
)
:
void
Type Parameters
K
extends
"peer"
Parameters
type
:
K
listener
:
null
|
EventHandler
<
PeerDiscoveryEvents
[
K
]
>
Optional
options
:
boolean
|
AddEventListenerOptions
Returns
void
dispatch
Event
dispatch
Event
(
event
)
:
boolean
Parameters
event
:
Event
Returns
boolean
Private
get
Peers
From
Local
Storage
get
Peers
From
Local
Storage
(
)
:
LocalStoragePeerInfo
[]
Returns
LocalStoragePeerInfo
[]
handle
New
Peers
handle
New
Peers
(
event
)
:
void
Parameters
event
:
CustomEvent
<
IdentifyResult
>
Returns
void
listener
Count
listener
Count
(
type
)
:
number
Parameters
type
:
string
Returns
number
remove
Event
Listener
remove
Event
Listener
<
K
>
(
type
,
listener
?
,
options
?
)
:
void
Type Parameters
K
extends
"peer"
Parameters
type
:
K
Optional
listener
:
null
|
EventHandler
<
PeerDiscoveryEvents
[
K
]
>
Optional
options
:
boolean
|
EventListenerOptions
Returns
void
safe
Dispatch
Event
safe
Dispatch
Event
<
Detail
>
(
type
,
detail
?
)
:
boolean
Type Parameters
Detail
Parameters
type
:
"peer"
Optional
detail
:
CustomEventInit
<
Detail
>
Returns
boolean
Private
save
Peers
To
Local
Storage
save
Peers
To
Local
Storage
(
)
:
void
Returns
void
start
start
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
stop
stop
(
)
:
void
|
Promise
<
void
>
Returns
void
|
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
constructor
#private
components
is
Started
options
peers
[to
String
Tag]
add
Event
Listener
dispatch
Event
get
Peers
From
Local
Storage
handle
New
Peers
listener
Count
remove
Event
Listener
safe
Dispatch
Event
save
Peers
To
Local
Storage
start
stop
Documentation
@waku
interfaces
utils
message-hash
proto
enr
core
relay
peer-exchange
dns-discovery
local-peer-cache-discovery
message-encryption
sdk
browser-tests
Generated using
TypeDoc