push
Returns a reference on a child data node with a unique key.
The key (or name) of the child data node is guaranteed to be unique and lexicographically ordered after any previously generated key by any of the push methods. This method doesn't write anything in the Webcom database and works synchronously.
Write some given data under a new child data node with a unique key.
The key (or name) of the child data node where to write the data is guaranteed to be unique and lexicographically ordered after any previously generated key by any of the push methods. The data is written asynchronously, the given onComplete callback object will be called as soon as the write is acknowledged by the back end. However, the method itself returns synchronously a Webcom reference on the child data node where the write operation will take place.
Return
a reference on the new child data node where the data is to be written