Automatically refresh a page

0
Hi there, I have the following situation: One page is opened by two users. If user 1 changes data, it can happen, that caused by this changement, also data on the page of user 2 will change. But at the moment user 2 has to press F5 to update his page in order to see these changes. How to refresh this page automatically? If anybody has an idea, please let me know. Thanks in advance.
asked
1 answers
0

The first solution that comes to mind is setting up a timer, checking every couple of seconds for new data.

But there is a better way and that is using socket io. I have not implemented it myself but would love to see you try to follow Austin’s article on this: https://austinmcnicholas.com/blog/2019/7/23/socketio-mendix-implementation.

Please also let us know if you have succeeded.

answered