IFClite TypeScript API
    Preparing search index...

    Function filterUpdateByClient

    • Filter a Y update so it only contains operations from clientId.

      We use Yjs's diff-against-state-vector machinery: build a state vector that has every client except clientId advanced past the end of the input update, then diffUpdate returns just clientId's structs.

      Parameters

      • update: Uint8Array
      • clientId: number

      Returns Uint8Array