Google Drive Realtime API Playground

Step 1Authorize

To use the Google Drive Realtime API Playground you must first the Playground.

Step 2Create or Open a document

You need to a new document or an existing document on which to collaborate.

Step 3Share

To collaborate you must this document with other users or open this same document in a new window and collaborate with yourself.

Step 4Collaborate

Google Drive collaborative documents are made of 4 types of collaborative elements: String, Lists, Maps and Custom objects. A Google Drive collaborative document can have as many of these collaborative elements as they need. As a demonstration, You will find below UI widgets representing collaborative elements of each type.

Collaborative strings

Collaborative strings are just like normal strings, except that all browser sessions will be notified and updated when the string changes. Events are fired when strings are inserted to the collaborative string or when part of the string is deleted.

Edit the demo Collaborative String

Reference docs - Source code

Collaborative lists

A collaborative list state is shared across sessions. Events are fired when items are added or removed to the list or when an existig item's value is set.

Add, remove or set items on the demo Collaborative List

List items

Link to reference doc - Source code

Collaborative maps

Collaborative maps share key/value state across sessions. They support standard map operations. Events are fired when key-value pairs are changed.

Add, change or remove key-value pairs on the demo Collaborative Map

Keys Values


Key:
Value:
Link to reference doc - Source code

Collaborative custom objects

Collaborative custom object have properties who's state is shared across sessions. Events are fired when property values are changed.

Modify properties of the demo Collaborative Custom Object

Properties Values
Name
Director
Notes
Rating
Link to reference doc - Source code
Event Logs Hide local events
Fork me on GitHub