I am working on a Support app that requires me to detect incoming chat messages from a customer/visitor that started a chat (Chat is enabled in agent account), from the auto-generated ticket in Support Agent Dashboard; but no matter what App event listener I try to help me detect when a visitor has sent a message, none of them gets triggered, even though I see the message appear in the ticket live.
App locations: ticket_sidebar and background
Some of the event listeners I've tried that didn't work are as follows:
client.on('channel.message.received') // doesn't work as I am working with a Support app, not a Chat app
client.on('comment.text.changed') // detects agent messages in editor but not received messages
client.on('*.changed') // was counting on this to detect anything but to no avail