Y.applyUpdate(doc, new Uint8Array(update)) is not updating the existing Ydoc consistently,
I am building a collaborative editor for my canvas editor, I am using Yjs for the collaborative editor. For every change one client is doing i am receiving that update at the backend and updating my yjs doc at the backend. I am using React and Nodejs along with sockets.
But one problem I am facing with this backend code (given), my backend Yjs doc is not updating and it’s saving the older data to Redis. I am adding both backend and frontend code.