close search

Real-time updates

Real-time updates is the most important part in building an instant chat messaging application. Stringee provides very simple methods to register and listen for events, as described in Connecting. You need to implement onObjectChange event to get Conversations, Messages updates.

onObjectChange = ({objectType, objectChanges, changeType}) => {
    console.log("onObjectChange" + objectType + " " + changeType); => {
      console.log("Object " + object.text);

In which: