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.
Implement ChangeEventListener to receive conversation and message updates.
stringeeClient.addChangeEventListener(new ChangeEventListener() {
@Override
public void onChangeEvent(StringeeChange change) {
}
});
In which:
objectType: StringeeObject.Type.CONVERSATION or StringeeObject.Type.MESSAGEchangeType: StringeeChange.Type.INSERT, UPDATE, or DELETEobject: A Conversation or Message