import { generateSyncMessage } from "https://deno.land/x/automerge@2.2.2/next.ts";
Generate a sync message to send to the peer represented by inState
Returns
[SyncState, SyncMessage | null]
An array of [newSyncState, syncMessage | null]
where
newSyncState
should replace inState
and syncMessage
should be sent to
the peer if it is not null. If syncMessage
is null then we are up to date.