Preparing search index...
The search index is not available
API
API
<internal>
SyncState
Class SyncState
Emit sync state when it changes
Hierarchy
TypedEmitter
SyncState
Index
Constructors
constructor
Methods
add
Blob
Want
Range
add
Peer
clear
Blob
Want
Ranges
disconnect
Peer
get
State
Constructors
constructor
new
Sync
State
(
opts
)
:
SyncState
Parameters
opts
:
{
coreManager
:
CoreManager
;
logger
:
undefined
|
Logger
;
peerSyncControllers
:
Map
<
string
,
PeerSyncController
>
;
throttleMs
:
undefined
|
number
;
}
core
Manager
:
CoreManager
logger
:
undefined
|
Logger
peer
Sync
Controllers
:
Map
<
string
,
PeerSyncController
>
throttle
Ms
:
undefined
|
number
Returns
SyncState
Methods
add
Blob
Want
Range
add
Blob
Want
Range
(
peerId
,
start
,
length
)
:
void
Parameters
peerId
:
string
start
:
number
length
:
number
Returns
void
add
Peer
add
Peer
(
peerId
)
:
void
Parameters
peerId
:
string
Returns
void
clear
Blob
Want
Ranges
clear
Blob
Want
Ranges
(
peerId
)
:
void
Parameters
peerId
:
string
Returns
void
disconnect
Peer
disconnect
Peer
(
peerId
)
:
void
Parameters
peerId
:
string
Returns
void
get
State
get
State
(
)
:
State
Returns
State
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
Blob
Want
Range
add
Peer
clear
Blob
Want
Ranges
disconnect
Peer
get
State
API
Loading...
Emit sync state when it changes