Live Update Mode

Live Update is a mode that provides synchronous data update in real time. When some user makes a change, it becomes visible to all others immediately.
The mode uses the Faye socket library to make the process as fast and flexible as possible, and doesn't require any page refreshes (updates just a component it's applied to).

When you run the app with the enabled live update mode the following process takes place:

The app connects clients to the server which links them to data storage.

Then, the app establishes a two-way connection with the Node.js server (opens a socket for the app and keeps it opened as long as the app is running).

When a client makes some change, the related request immediately goes to the server which processes it and sends the answer to the app.
If the answer is affirmative ( the request was performed successfully), the app passes the message to the Node.js server
informing that some change was made together with the details of this change. Node.js,
in its turn, sends this message to all other clients running the app. The Live Update library helps to process the obtained information and make the related updates on the clients.

As you follow the tutorial, you will create a simple grid that accepts a user’s text input and updates it in real time.
The simple steps introduce common information and useful tips needed for using the mode in app development.