Update “online Now” status for other users that are online.
5
zfrika
Use a json file that tracks who is online and let other users know.
Review the code to see how we know who is online. id="online-users" onlineUsersContainer Function updateOnlineUsers() this.onlineUsers There is an array of users called. this.users = [ { id: 'john_doe', name: 'John Doe', email: 'john@254kenya.com', online: true, lastSeen: new Date( ) },
Populate this json users on the local storage. Create a json file on the server that tracks how many users are online. When you click on a user name, you should be able to see their profile and email them. Or schedule a video chat. If they accept the video chat request you can chat. Created a user.json file in public/json/ Can we call it successfully? Who handed messaging-system.ejs the <%- data %>. MessagesRoutes.js