arrow_back Back to Tickets

Ticket #e23f76

completed

Problem

install online status of users. use socket.io

Creator

marcus

Priority

1

Urgent

urgent

Important

important

Project Name

zfrika

Question

we have to merge socket.io and zfrika app on the same port. what is the definition of being online? user is currently logged in. anytime the username exist in the sessionStorage, then the user is logged in.

Previous Steps

1.we manage to establish a connection via socket io. 2. try to call socket.\io from a route so that when a user logins we see them. (successfully notified user 1 . via login routes when user 2 logged in. 3. add the array of new users name to Online Now. why does it delete the name form the list when I go to a new page. shouldn't it add the name. you need to add the name to the list again (resolved) 2b. delete the name from array when a user disconnects from the platform. is user selects logoff. then user is removed from the list.

Next Steps

User is not connected when they move from zfrikadev/ to zfrikadev/country. so only start tracking user when they login. we ar updating user on who is on the line. (resolve)

Solution

completed the following: 1. either use socket.io to keep a heartbeat of the user online. 2. to show who is online. you need to setup socket.io 3. ;setup a single port that share socket.io and the zfrika 4. get the zfrika and socket.io talking on the same port.

Ticket Information

Ticket ID: 69559e9fdf2473a6c8e23f76
Date Initiated: 1/1/2026, 10:06:00 PM
Date Resolved: 1/2/2026, 12:19:00 PM
Status: completed
Urgent: urgent
Important: important
Created: 12/31/2025, 2:07:27 PM
Last Updated: 1/2/2026, 12:19:03 PM