RocketChat / RocketChat/Rocket.Chat
rocketchat API not connect really user
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
User not really connected by API Login
Steps to reproduce:
Use API:
- connect user
- set active status

Expected behavior:
User must be connected. And the number online user increment
Actual behavior:
The number of online user aren't different.
When I get all presence user ( http://my_addr_rocketchat/api/v1/users.presence ), I have list off all user but when I watch it in admin into interface online user not corresponds ( 2 in this case but I connect 10 other via API).

How can I connect al users.
Server Setup Information:
Version of Rocket.Chat Server: 3.10.0
Operating System: linux
Deployment Method: docker
Number of Running Instances: 2
NodeJS Version: v12.18.4
MongoDB Version: 4.0.21
Client Setup Information
- Desktop App or Browser Version:
- Operating System:
Additional context
Relevant logs:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the API login and active-status steps against the reported two-instance Docker setup, then compare the users.presence response with the admin online-user count. Check whether the discrepancy occurs with one instance or only with multiple instances; done means API-connected users are consistently reflected in the online count.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, mongodb, nodejs, typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100