Overview
Chat events are emitted when chat-level changes occur, such as when a chat’s read status changes.Events
chat-read-status-changed
Emitted when a chat’s read status changes (marked as read or unread).Chat read status change information
Event Methods
on()
Register a listener that will be called every time the event is emitted.once()
Register a listener that will be called only once, then automatically removed.off()
Remove a specific listener from an event.You must pass the exact same function reference to
off() that was passed to on(). Anonymous functions cannot be removed.Related
- Chats API - Manage chats and their properties
- Message Events - Handle incoming messages