close search

Real-time updates

Real-time updates are 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 will receive StringeeChange when listen to event DidReceiveChange and you can get StringeeConversations, StringeeMessages updates by StringeeObjectChange.

    void handleDidReceiveObjectChangeEvent(StringeeObjectChange stringeeObjectChange) {
        print(stringeeObjectChange.objectType.toString() + '\t' + stringeeObjectChange.type.toString());

In which: