All users show online status 24/7

Open
#1,544 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
node.js, postgresql, typescript
Domain
backend

Research direction

Start by reproducing the account A/account B sequence described in the issue on the reported environment, then trace the server-side online-status handling. Verify how disconnects and stale sessions are recorded and whether PostgreSQL state is involved. Done means account A changes to offline after disconnecting and remains offline after the reported wait periods.

Written by the indexing model from the issue text.

Description

Describe the bug
All users show online status 24/7.

To Reproduce

  1. Sign in on account A, then close out.
  2. Wait a while (hour, day, week) and and when signed in on account B, account A will still show online.

Expected behavior
Account A will show offline after disconnecting.

System Information (please complete the following information):

  • OS: Ubuntu
  • Version (If not applicable skip): 24.04.4 (LXC)
  • Node Version: 24
  • Python 3 Version: 3.12.3

Env and Software info

  • Release: Latest
  • Branch (if release is not applicable): Master
  • Commit Hash (if release is not applicable): 954a61f6b6fd79c195281ef181a9a0a5af34e907
  • Database: Postgres 16
  • Reverse Proxy: nginx
  • Thread Count: 1

Additional context
N/A

Dominant language
TypeScript
Stars
2.2k
Forks
323
Avg merge
14h 48m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spacebarchat/server

All issues in spacebarchat/server

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.