diffsync | Enables real-time collaborative editing | Editor library
kandi X-RAY | diffsync Summary
kandi X-RAY | diffsync Summary
Enables real-time collaborative editing of arbitrary JSON objects.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of diffsync
diffsync Key Features
diffsync Examples and Code Snippets
Community Discussions
Trending Discussions on diffsync
QUESTION
I'm running a node server with SocketIO which keeps a large object (app state) that is updated regularly.
All clients receive the object after connecting to the server and should keep it updated in real-time using the socket (read-only).
Here's what I have considered:
1:
Emit a delta of changes to the clients using diff
after updates
(requires dealing with the reability of delivery and lost updates)
2:
Use the diffsync
package (however it allows clients to push changes to the server, but I need updates to be unidirectional, i.e. server-->clients)
I'm confident there should be a readily available solution to deal with this but I was not able to find a definitive answer.
...ANSWER
Answered 2019-Mar-02 at 17:53The solution is very easy. You must modify the server so that it accepts updates only from trusted clients.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install diffsync
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page