Receives a synchronization message from a peer and applies the changes
to the local document. This updates both the document and the sync state
to reflect the received changes.
Usage
am_sync_decode(doc, sync_state, message)
Value
The document doc (invisibly, for chaining)
Arguments
doc
An Automerge document
sync_state
A sync state object (created with am_sync_state_new())