Get online users with ajax polling
- Create sessions with ajax post
- Track online users with latest time value
- Create server with ajax post
- Material CSS, VueJS and ExpressJS has been used
- It basically updates user collection array with latest timestamp and measure if user disconnected from session or not.
- Get online users function basically checks array and check users collection, and calculate user's latest timestamp to determine online users.
npm install