The backend and frontend in a Freshdesk app are separate and can’t communicate directly in this way.
However, one possible approach is to store relevant data in a database when the external event is triggered in the backend. The frontend can then periodically check for this data and update the UI accordingly.
This is a quick workaround that you can try while exploring more efficient solutions. Hope this helps!