You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-24Lines changed: 31 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,37 +92,44 @@ try {
92
92
93
93
#### Subscribe to receive messages
94
94
95
-
QuickBlox provides message event handler allowing to notify client apps of events that happen on the chat. Thus, when a dialog has been created, a user can subscribe to receive notifications about new incoming messages. To subscribe to message events call `QB.chat.subscribeMessageEvents` method and pass `dialogId`, `eventName`, `data` parameters to it using the following code snippet. The `QB.chat.subscribeMessageEvents` method tells SDK to send events about new messages.
96
-
`eventName` - provides some values:
95
+
QuickBlox provides chat event handler allowing to notify client apps of events that happen on the chat. Thus, when a dialog has been created, a user can subscribe to receive notifications about new incoming messages. To subscribe to message events call `QB.chat.subscribeChatEvent` method and pass QBChatEvents.RECEIVED_NEW_MESSAGE as an event parameter to it using the following code snippet.
96
+
97
+
`event` - provides some values:
97
98
98
99
-`QBChatEvents.RECEIVED_NEW_MESSAGE` - subscribe to `new messages` event
100
+
-`QBChatEvents.RECEIVED_SYSTEM_MESSAGE` - subsccribe to `system messages` event
101
+
-`QBChatEvents.MESSAGE_DELIVERED` - subscribe to `message delivered` event
102
+
-`QBChatEvents.MESSAGE_READ` - subscribe to `message read` event
0 commit comments