'content_changed'
event. It is invoked when the document content has been updated due to changes made by any user in the session. data
will contain a source
field, where 'local'
indicates local user changes, and 'remote'
indicates remote user changes. contentChanged
hook will be invoked for both local and remote updatescontent_changed
event. usersUpdate
'users_update'
event. It is invoked every time a new user joins a session or an existing user leaves a session data
object is an array that contains the current snapshot of users currently connected to the session. See 'users_update'
event for details.fetchDocOnNetworkReconnect