The doc the sync message is about
The SyncState for the peer we are communicating with
The message which was received
Optionalopts: Automerge.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.
An array of [newDoc, newSyncState, null] where
newDoc is the updated state of doc, newSyncState should replace
inState.
Update a document and our sync state on receiving a sync message