Event
Listen for different chat-related events (like messages, user actions, etc.) and handle them as they occur.
The full list of events that can be received by the function passed to addEventListener
. An event is an object with two keys: type
and data
.
|
| Description |
|
| This indicates the connection to the Chat service has been established. |
|
| This indicates the connection to the Chat service has been lost. The SDK will automatically try to reconnect to the service. |
|
| A new message has been sent to a subscribed channel. |
|
| An existing message from a subscribed channel has been modified. |
|
| A new message action has been sent to a subscribed channel. |
|
| An existing message from a subscribed channel has new or updated translations. |
|
| A file sent as part of a message has partially uploaded, use this event to render a progress bar. |
|
| A file sent as part of a message has been uploaded successfully. |
|
| A file sent as part of a message failed to upload. |
|
| The typing indicator start event. |
|
| The typing indicator stop event. |
Last updated