Skip to content

Latest commit

 

History

History
89 lines (45 loc) · 1.52 KB

PeerSyncController.md

File metadata and controls

89 lines (45 loc) · 1.52 KB

APIDocs


API / <internal> / PeerSyncController

Class: PeerSyncController

Constructors

new PeerSyncController()

new PeerSyncController(opts): PeerSyncController

Parameters

opts

opts.coreManager: CoreManager

opts.logger: undefined | Logger

opts.protomux: Protomux<OpenedNoiseStream>

opts.roles: Roles

opts.syncState: SyncState

Returns

PeerSyncController

Accessors

peerId

get peerId(): string

Returns

string


peerKey

get peerKey(): Buffer

Returns

Buffer


syncCapability

get syncCapability(): Record<"blob" | "auth" | "config" | "data" | "blobIndex", SyncCapability>

Returns

Record<"blob" | "auth" | "config" | "data" | "blobIndex", SyncCapability>

Methods

handleDiscoveryKey()

handleDiscoveryKey(discoveryKey): void

Parameters

discoveryKey: Buffer

Returns

void


setSyncEnabledState()

setSyncEnabledState(syncEnabledState): void

Parameters

syncEnabledState: SyncEnabledState

Returns

void