Detecting inactivity of the user and triggering a nanoflow

0
Hi everyone. Has anyone worked with live chat functionality with WebSockets? We want to close the chat session automatically if the user inactive for for example 3 minutes. I have a nanoflow to close the chat but i couldn't figure out how to detect the inactivity of the user and trigger the nanoflow. If anyone has suggestions, i am happy to hear.
asked
2 answers
0

You could use the Microflow Timer widget (this also runs Nanoflows).

 

https://docs.mendix.com/appstore/widgets/microflow-timer/

 

You can set it to run every X seconds and check for activity. This could be looking at the changedDate on an entity for example and seeing if it's gone over your 3 minute criteria. If it has then you can then call your closure nanoflow.

 

I hope this has helped. Good luck

answered
0

Hi Hasan,

 

Try explore the below module maybe it will help you.

Session Timeout

 

Hope it helps!

Thanks & Regards,

Manikandan K

answered