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

[JS] Add realtime local clone #67

Open
vhdirk opened this issue Jul 16, 2020 · 2 comments
Open

[JS] Add realtime local clone #67

vhdirk opened this issue Jul 16, 2020 · 2 comments
Labels
help wanted Extra attention is needed javascript

Comments

@vhdirk
Copy link
Contributor

vhdirk commented Jul 16, 2020

It'd be cool if the Ditto SDK could have a local clone of the remote digital twin, that is updated with websocket/sse. That way, the number of http requests could be a lot lower.

One example of this is the firebase firestore. The JS SDK can be set up to work like this, too.

What's your opinion on this? I'm willing to work on it, but it might take a while; it's quite a bit of work, and I don't have much time to spare.

@thjaeckle
Copy link
Member

I like that idea very much. 👍
Would make building web uis showing live data from a twin really easy.

@tobias-zeptio
Copy link

I'd say this feature is great, but would probably not fit in the scope of a client. This is more of a application layer implementation, at least that how I have done it in the past. An implementation would depend on the javascript framework in use by whoever's using the library.

Maybe do an example implementation a as ditto-clients/javascript/examples/web-app.

@thjaeckle thjaeckle added the help wanted Extra attention is needed label Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed javascript
Projects
None yet
Development

No branches or pull requests

3 participants