Skip to content

ReplicationOptions

Defined in: libs/runtime/src/typedblite-replicator.ts:37

How TypeDBLiteReplicator replicates.

Properties

Name Description
direction Which way to move changes.
from? Where each direction resumes.
timeoutMs? replicateOnce only: fail if the hub has not answered, pull and push together, within this many milliseconds.

readonly direction: SyncDirection

Defined in: libs/runtime/src/typedblite-replicator.ts:39

Which way to move changes.


readonly optional from?: SyncCursor

Defined in: libs/runtime/src/typedblite-replicator.ts:41

Where each direction resumes. Absent, it starts from the beginning of the log.


readonly optional timeoutMs?: number

Defined in: libs/runtime/src/typedblite-replicator.ts:47

replicateOnce only: fail if the hub has not answered, pull and push together, within this many milliseconds. Without it, a hub that accepts the connection and then says nothing (a paused container, a dropped route) hangs the sync for as long as the socket lives.

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.