Author Topic: ChatStateChangeMessage  (Read 2502 times)

Offline genesys_kumar

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
ChatStateChangeMessage
« on: January 19, 2022, 06:19:18 AM »
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] [WWE.Chat.MediaChatExtension] {
   "messageType": "ChatStateChangeMessage",


Any idea pls let me know.

Thanks,
Kumar

Offline hsujdik

  • Sr. Member
  • ****
  • Posts: 483
  • Karma: 17
Re: ChatStateChangeMessage
« Reply #1 on: January 19, 2022, 09: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: 24
  • Karma: 0
Re: ChatStateChangeMessage
« Reply #2 on: January 21, 2022, 01:19:46 AM »
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);