Room's id.
Indicates if there are any older messages to load.
Indicates if participant has any unread messages.
Participant's id
Indicates if current user has any unread messages.
Indicates if message with the specified timestamp was read by anyone except current user.
Message's timestamp
Indicates if participant has read the message with the specified timestamp.
Message's timestamp
Participant's id
Indicates if current user has read the message with the specified timestamp.
Message's timestamp
Get participant's last read message's timestamp.
Participant's id
Get current user's last read message's timestamp.
Used for loading older chat room's history. Consecutive calls will be handled in a queue. Triggers HistoryEvents.OLD_LOADED on success.
Timestamp to load messages before, by default oldest message's timestamp is used
Used for loading chat room's history up to the oldest unread message. Uses History.loadOlder method to load messages, thus triggering HistoryEvents.OLD_LOADED after each loaded batch of messages. Triggers HistoryEvents.UNREAD_LOADED on success.
Used for updating last read status. Consecutive calls will be grouped in a batch. Triggers HistoryEvents.READ_STATUS_UPDATED on success.
Message's id
Used for updating last read status. Consecutive calls will be grouped in a batch. Triggers HistoryEvents.READ_STATUS_UPDATED on success.
Messages' timestamps
Removes all listeners.
Removes all listeners for event.
Removes all listeners for events.
Removes specific listener for event.
Removes specific listener for multiple events.
Adds listener for event.
Adds the same listener for multiple events.
Used for sending a message to the chat room. Triggers HistoryEvents.MESSAGE on success.
Message content
Returns list of users' ids (except current user) who read the message with the specified timestamp.
Message's timestamp
Indicates if all unread messages are loaded.
List of all messages sorted from oldest to most recent.