-
Notifications
You must be signed in to change notification settings - Fork 15
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
Handle document delta updates sent from the server #123
Comments
Take a look at how JSON diffs are created and applied. |
@wusteven815 JSON patch is the spec we should implement for processing the deltas: https://jsonpatch.com/ |
The |
On the server side, we'll want to keep track of the previous deephaven-plugins/plugins/ui/src/deephaven/ui/object_types/ElementMessageStream.py Line 450 in b3f5459
On the client side, we'll need to add a new jsonClient method to handle the documentDelta:
And apply the patch to the previous document. |
Currently for every update, the server sends the entire re-rendered document, even if only a part of it has changed. Should only send the diff between the current document and the new document, to decrease payload size.
Note this is separate from #129 , where we only send newly exported objects.
The text was updated successfully, but these errors were encountered: