import { receiveSyncMessage } from "https://deno.land/x/automerge@2.2.0/next.ts";
Update a document and our sync state on receiving a sync message
Parameters
optional
opts: ApplyOptions<T>- Any ApplyOptions, used for passing a
PatchCallback which will be informed of any changes
in
doc
which occur because of the received sync message.