import { receiveSyncMessage } from "https://deno.land/x/automerge@2.2.2/index.ts";
Update a document and our sync state on receiving a sync message
Parameters
message: SyncMessage
- The message which was received
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.