Skip to main content
Module

x/automerge/stable.ts>getLastLocalChange

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Go to Latest
function getLastLocalChange
import { getLastLocalChange } from "https://deno.land/x/automerge@2.2.0/stable.ts";

Get the binary representation of the last change which was made to this doc

This is most useful when staying in sync with other peers, every time you make a change locally via change you immediately call getLastLocalChange and send the result over the network to other peers.

Returns

Change | undefined