-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMPROVE] Change user presence events to Meteor Streams #14488
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sampaiodiego do you know if there any problem with this observe?
/client/startup/usersObserve.js
because I'm not sure, but there are a lot of fields there...
just answer my questions (despite the questions, the PR looks very good :) )
@ggazzo idk, and for sure it doesn't need a reactive query for all that fields. I'm not totally sure if all that is still needed. |
🥰 glad to see this! I think this will help. Especially moving to a single http call to grab all statuses/presence instead of sometimes ending up being cramming down the websocket in a flood. |
b2bb510
to
0a935c1
Compare
0a935c1
to
c361643
Compare
c361643
to
9c3c294
Compare
Co-Authored-By: Aaron Ogle <geekgonecrazy@users.noreply.github.com>
867935a
to
f83d7dc
Compare
…t/Rocket.Chat into change-status-to-streams-again
… into new-reports-ui * 'new-reports-ui' of https://github.com/wreiske/Rocket.Chat: (97 commits) LingoHub Update 🚀 (RocketChat#14643) [FIX] Role name spacing on Permissions page (RocketChat#14625) [FIX] Avatar images on old Livechat client (RocketChat#14590) [FIX] Inject code at the end of <head> tag (RocketChat#14623) [FIX] Mailer breaking if user doesn't have an email address (RocketChat#14614) Ci improvements (RocketChat#14600) [FIX] E2E messages not decrypting in message threads (RocketChat#14580) Fix: emoji render performance for alias (RocketChat#14593) [FIX] Send replyTo for livechat offline messages (RocketChat#14568) Federation i18n message changes (RocketChat#14595) [REGRESSION] Fix Slack bridge channel owner on channel creation (RocketChat#14565) Fix thumbs up emoji shortname (RocketChat#14581) Fix broken logo url in app.json (RocketChat#14572) Add digitalocean button to readme (RocketChat#14583) Fix: Add emoji shortnames to emoji's list (RocketChat#14576) [IMPROVE] Message rendering time (RocketChat#14252) [IMPROVE] Change user presence events to Meteor Streams (RocketChat#14488) Removed unnecessary DDP unblocks (RocketChat#13641) [FIX] Downloading files when running in sub directory (RocketChat#14485) [FIX] Broken layout when sidebar is open on IE/Edge (RocketChat#14567) ...
Closes #12800
Changing to streams will make it lighter on both client and server.
The first batch of online/away users will come from a REST request (thus will not flood websocket) and only further changes on status will come though DDP.
connect
anymore