I'd like to implemente a user experience similar to Google Docs using realtime API. I wonder what is the best approach to track cursors / selections from all collaborators.
It looks as if IndexReference would be the way to go but how can I track if a collaborator adds a IndexReference to a string?
In the realtime API sandbox only cursor movements from the local cursor are tracked. Are IndexReferences broadcasted to all collaborators or are they for local usage only?
Or is the preferred approach to create a collaborativeMap containing all the selections? Is there a way to attach certain fields to a collaborator so that they get cleaned up when a collaborator leaves?