Author Topic: ChatStateChangeMessage  (Read 3800 times)

Offline genesys_kumar

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
ChatStateChangeMessage
« on: January 18, 2022, 09:19:18 PM »
Hi,

I've below line of code in my customization to listen for WWE events.  But i'm specifically looking for events from "ChatStateChangeMessage"

genesys.wwe.service.subscribe(["agent", "interaction", "media", "system"], WweEventHandler, this);  - with subscription not receiving messages

from Log:
2022-01-18 14:59:48.158 [TRACE] [[b]WWE.Chat.MediaChatExtension][/b] {
"messageType": "ChatStateChangeMessage",


Any idea pls let me know.

Thanks,
Kumar

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: ChatStateChangeMessage
« Reply #1 on: January 19, 2022, 12:17:58 AM »
Is your customized page set on interaction-workspace\workspace.web-content and the correct section representing that customization defined on the WWE Cluster application?

Did you load the wwe-service-client-api.js on the webpage before your script?

Also, check on your browser if there are any CORS or security errors calling for your customized page, with the Browser debug/developer tools.

Offline genesys_kumar

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: ChatStateChangeMessage
« Reply #2 on: January 20, 2022, 04:19:46 PM »
Thanks for the reply.

I'm able to listen to those messages through CometD JS

ccs-cometd-client.js
CcsCometD.Subscribe("/v2/me/chats", CometdEventHandler);