Reliable outgoing message callback for JS SDK / Vue UI Kit
Hi CometChat team — opening this issue first per contributing guidance to discuss the API need.
We need a reliable way to track new messages after initial load in an active DM thread.
Our flow is:
On chat open, fetch a small history window to establish baseline count.
After that, increment count in realtime for:
incoming messages
outgoing messages sent by the local user/device
Incoming events are fine, but we don’t have a dependable/supported outgoing “message sent” callback path in our JS SDK + Vue UI Kit integration for same-session sends.
Could you provide an official hook/callback for successful local sends (SDK or UI Kit), e.g.:
onMessageSent/onTextMessageSent(same device/session), orVue UI Kit emit like
@message-sentfrom chat/composer.
This would let apps maintain accurate post-load counters without brittle workarounds (patching send methods, polling, DOM observers).
Stack
@cometchat/chat-sdk-javascript4.x@cometchat/chat-uikit-vue4.xVue 3
DM chats
Log in to comment and vote
No comments yet
Be the first to share your thoughts.