@yorkie-js/sdk
    Preparing search index...

    Class VersionVector

    VersionVector is a vector clock that is used to detect the relationship between changes whether they are causally related or concurrent. It is similar to vector clocks, but it is synced with lamport timestamp of the change.

    Index

    Constructors

    Methods

    • get gets the lamport timestamp of the given actor.

      Parameters

      • actorID: string

      Returns bigint | undefined

    • has checks if the given actor exists in the VersionVector.

      Parameters

      • actorID: string

      Returns boolean

    • set sets the lamport timestamp of the given actor.

      Parameters

      • actorID: string
      • lamport: bigint

      Returns void

    • unset removes the version for the given actor from the VersionVector.

      Parameters

      • actorID: string

      Returns void