Google Drive SDK Realtime / Multiple Cursors (IndexReference?) -


i'd implemente user experience similar google docs using realtime api. wonder best approach track cursors / selections collaborators.

it looks if indexreference way go how can track if collaborator adds indexreference string?

in realtime api sandbox cursor movements local cursor tracked. indexreferences broadcasted collaborators or local usage only?

or preferred approach create collaborativemap containing selections? there way attach fields collaborator cleaned when collaborator leaves?

indexreferences data model objects other. can add listeners them informed of changes.

you want have map sessionid -> cursor information. how cursor information represented depends on want track, index reference on string.

you can listen collaborator leave events figure out when remove collaborator's cursor.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -