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:

  1. On chat open, fetch a small history window to establish baseline count.

  2. 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), or

  • Vue UI Kit emit like @message-sent from chat/composer.

This would let apps maintain accurate post-load counters without brittle workarounds (patching send methods, polling, DOM observers).

Stack

  • @cometchat/chat-sdk-javascript 4.x

  • @cometchat/chat-uikit-vue 4.x

  • Vue 3

  • DM chats

Please authenticate to join the conversation.

Upvoters
Status

New

Board

💡 Feature Request

Subscribe to post

Get notified by email when there are changes.