How to control "ticket.conversation.changed" event listener...



2023년 8월 04일에 게시됨

Hello..

I'm using "client.on("ticket.conversation.changed", func)" in my app, to capture the conversation changes..

But, I'm facing some issues in that..

That function triggers multiple times, when a single message came.. 

(ie), When user sends a message means, that function triggers multiple times (sometimes more than 40 times), so that it captures the conversation data multiple times.. Therefore, It slows down my app functionality..

So, I need to control that triggering event only once, when new message came or any conversation changes happen..

Can you please suggest any ideas to control or off that conversation listener, when function not called.. I just tried with "client.off("ticket.conversation.changed")", But, its not working..

Looking forward for solutions..

Thank you..


0

10

댓글 0개

로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물