Hello,
We are looking into the widget documentation and with the Web Messenger predefined chat widget, we can’t react in a custom way to new messages. However, we are thinking about a workaround that we would like to be reviewed by the Genesys team.
Here are the questions to be validated:
"If we want to use a predefined messenger chat widget and additionally react in a custom way to newly received messages, is it possible to have another websocket connection opened to the same chat?
Possible flow:
-
We use a predefined Messenger window the way it's used now
-
additionally using Messenger Javascript SDK we subscribe to "Conversations.started" event
-
after the event is fired, developed on our side JS code establishes an additional WS connection for the same conversation and runs additional JS logic when new messages are received through WS.
-
Unknowns that need to be verified from Genesys side:
- Is it possible to have a few different WS connections for one conversation?
- "Conversations.started" event data payload is not documented. Does it have all the data required to establish another WS connection for the same conversation?"
Does anyone have an input on this?