You can use one websocket module to Push real-time messages from the server to browser.
Below there are two marketplace items that might be helpful, choose that best fits your requirement.
https://marketplace.mendix.com/link/component/115800
https://marketplace.mendix.com/link/component/205050
I hope that fulfills your requirement.