Skip to content
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

Blocked "river of realtime" #5

Closed
dimofte opened this issue Mar 9, 2016 · 1 comment
Closed

Blocked "river of realtime" #5

dimofte opened this issue Mar 9, 2016 · 1 comment

Comments

@dimofte
Copy link
Contributor

dimofte commented Mar 9, 2016

At the moment the client updates don't work as described by the diagram in the readme.
If I open 2 clients with the same user, one doesn't get updated when the other makes changes (e.g. adding dashboards, lists etc)

@hoodsy
Copy link
Owner

hoodsy commented Mar 10, 2016

@dimofte I am able to replicate your issue, and the cause is the lack of changefeed + socket connection.

Basically, this project currently supports the Hello, World realtime example of:

  • Registering a new user, creating an organization (changefeed + socket connection established).
  • In an incognito window, registering a second user, creating a second organization.
  • Adding the second user to the first organization, and refreshing the second user's browser window
  • Creating dashboards that populate in realtime

Disclaimer: only dashboards update in realtime, as RethinkDB doesn't support changefeeds across tables yet, and I would prefer to keep the current DB structure and wait for this release.

Again, currently the changefeed + socket connection is only made when an organization is created, so if the server is restarted, that connection will be lost. It's pretty brittle, but let's call it delicate.

As this is a basic example, I am hoping to expand it to a more stable, robust state... any and all contributions are very much welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants