Genesys CTI User Forum
Genesys CTI User Forum => Genesys-related Development => Topic started by: genesys_kumar 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
-
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.
-
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);