useMessages hook
the useMessages
hook is used to interface with messages belonging to a Chat.
Get Messages
Messages retrieved in a conversation are paginated to 25 messages at a time.
Send Message
To send a message, call the sendMessage(...)
function from useMessages
hook.
New messages received are automatically added to the messages
variable of useMessages(...)
Message
Parameters
Callback
Update Message
To update a message, call the updateMessage(...)
function from useMessages
hook.
messages are automatically updated in the messages
variable of useMessages(...)
Parameters
Message
Parameters
Callback
Delete Message
To delete a message, call the deleteMessage(...)
function from useMessages
hook.
Parameters
Last updated