API • Docs
API / <internal> / PeerSyncController
new PeerSyncController(
opts
):PeerSyncController
• opts
• opts.coreManager: CoreManager
• opts.logger: undefined
| Logger
• opts.protomux: Protomux
<OpenedNoiseStream
>
• opts.roles: Roles
• opts.syncState: SyncState
get
peerId():string
string
get
peerKey():Buffer
Buffer
get
syncCapability():Record
<"blob"
|"auth"
|"config"
|"data"
|"blobIndex"
,SyncCapability
>
Record
<"blob"
| "auth"
| "config"
| "data"
| "blobIndex"
, SyncCapability
>
handleDiscoveryKey(
discoveryKey
):void
• discoveryKey: Buffer
void
setSyncEnabledState(
syncEnabledState
):void
• syncEnabledState: SyncEnabledState
void