[IMPROVE] Change user presence events to Meteor Streams#14488
Merged
[IMPROVE] Change user presence events to Meteor Streams#14488
Conversation
ggazzo
requested changes
May 14, 2019
Member
ggazzo
left a comment
There was a problem hiding this comment.
@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 :) )
Member
Author
|
@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. |
Contributor
|
🥰 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. |
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
ggazzo
approved these changes
May 20, 2019
wreiske
added a commit
to wreiske/Rocket.Chat
that referenced
this pull request
May 27, 2019
… 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) ...
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
connectanymore