Send a Transient Message
You can use thesendTransientMessage() method to send a transient message to a user or in a group. The receiver will receive this information in the onTransientMessageReceived() method of the MessageListener class. In order to send the transient message, you need to use the TransientMessage class.
- User (TypeScript)
- User (JavaScript)
- Group (TypeScript)
- Group (JavaScript)
sendTransientMessage() returns void — the message is sent as a fire-and-forget operation with no response.
Real-time Transient Messages
You will receive the transient message in theonTransientMessageReceived() method of the registered MessageListener class.
- TypeScript
- JavaScript
TransientMessage.
Next Steps
Typing Indicators
Show real-time typing status in conversations
Send Messages
Send text, media, and custom messages