cometchat / chat-sdk-javascript

Voice & Video Calling and Text Chat SDK for JavaScript/Web
Other
30 stars 24 forks source link

Not receiving the onTypingEnded listener #87

Closed akshaycr9 closed 1 year ago

akshaycr9 commented 1 year ago

Describe the problem

When we start writing the the text box and call the CometChat.startTyping(params) function, we are getting the onTypingStarted listener but once I stop typing, it does not give us back the onTypingEnded event.

What was the expected behavior?

Expected behaviour is to get the onTypingEnded event once I stop typing as CometChat detects that and triggers it

Environment

"@cometchat-pro/chat": "3.0.2", "react": "^17.0.2", "typescript": "^4.0.3",

cometchat-helpcenter-bot commented 1 year ago

Keagan Ellis (CometChat Team) replied:

Hey Akshay!

Thanks for sharing your concern. This is Keagan from the Support team.

Could you kindly share the code snippet you are using for the "Start Typing" and "Stop Typing" indicators? Additionally, the SDK version you are using will be needed.

Regards

Keagan Ellis CometChat

akshaycr9 commented 1 year ago

I did not implement the endTyping function since it was mentioned in one of your tutorial that CometChat is smart enough to recognise the stop typing of user and would automatically trigger the onTypingEnded listener but it seems that is not the case and we need to explicitly call it. I guess you need to update the tutorial so that others do not face this and know what all needs to be implemented.

Link of the articles where this is written: React Chat Typing Indicator

Attaching the image as well screenshot-www cometchat com-2022 10 31-19_40_35

cometchat-helpcenter-bot commented 1 year ago

Keagan Ellis (CometChat Team) replied:

As checked with my team you will need to call the endTyping() method. The tutorial you're referring to is for the CometChat v2 SDK, and the typing functionality has changed in the v3 SDK.

Kindly refer to our documentation for more information on our Typing Indicators.

Keagan Ellis CometChat