/OnlineUsers-Task

Get online users with ajax polling

Primary LanguageHTML

OnlineUsers-Task

Get online users with ajax polling

Features

  • 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

How to measure online users?

  • 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.

Install

npm install

Test

http://localhost:8080