Emitted when the document content has been updated due to changes made by any user in the session.
// invoked whenever the document has been updated
// data.source === 'local' for local changes
// data.source === 'remote' for remote changes
This event allows for post-content-update actions, such as triggering third party plugins that can perform any number of actions, such as word-counting, spellchecking, or taking content snapshots
Emitted every time a new user joins a session or an existing user leaves a session
//emitted whenever a user joins or leaves the session
dataobject is an array that contains the current snapshot of users currently connected to the session. Each element of the array is a JSON object defined as follows:
As an example, the
dataobject might look like:
If you plan to roll your own avatar component implementation, this event provides the data you need to render and update the list of "online" users.