Live chat app how-to

0
I am trying to build a 1 to 1 chat app, however, I am unable to show messages on the client-side without refreshing the page. I have seen and gone through the live chat build in mendix forums but it doesnt work either. I only want to know how to send a string from one user and show it to another user without having to refresh the page.
asked
3 answers
1

Refreshing the page parameter would be the most common way. If however you're looking for websocket-like realtime events, have a look at the Pusher module.

answered
0

I found a way to do this using a microflow timer. I just refresh the entity using a dummy commit and the chat works.

answered
0

You can try with nanoflows. Nanoflows  are updating UI from the nanoflow when it's running. I'm using this approach in current project. Microflows updates UI after it's finished. You can do microflows calls from nanoflow action but updating UI should be done in Nanoflow.  Still some refreshed timer may be needed, but with nanoflows you can avoid full page refresh... 

answered